[opencms-dev] Thumbnail images

Roman Uhlig Maxity.de roman.uhlig at maxity.de
Thu Oct 1 17:01:10 CEST 2009


Hi Paul,

beside other minor use cases we are running a press service module, which uses native OpenCms image scaling for generating thumbnails of images up to 15 MB (pre-press). Up to now we never had any issues with it. Unless you need very special image scaling features, the native approach should be fine.

On the other hand, you could use Imagemagick's Java API. We have some non-OpenCms Java web applications where we use it. It's quite easy and fun to use and offers a lot of features.

Regarding the integration into the OpenCms workflow: I think there are several approaches. The one that comes to my mind first is hooking a suitable OpenCms event and do the generation there instead of praying that editors behave correctly (which will never happen I can tell). ;)

Best regards,
Roman


-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Paul-Inge Flakstad
Gesendet: Donnerstag, 1. Oktober 2009 16:40
An: The OpenCms mailing list
Betreff: [opencms-dev] Thumbnail images

Hi list

Just wanted to talk some basics! :) -I'm wondering how you handle your images, and in particular: your thumbnails.

I am of course aware of the native image scaling feature provided by OpenCms, but somewhere along the line we decided upon "more control" (which we later discovered can be translated to "more messy"). We implemented a routine that keeps thumbnail files in the VFS, in sub-folders of "imagegallery" folders. 

This is working OK..ish... -Editors sometimes forget to view the page they attached an image to before publishing. Whenever that happens, attemting to access the published page online will produce an error. (The thumbnail is created via the template, so no thumbnails of images for that page exists prior to the very first pageview.) Not to mention that there are a lot more files to handle.

So, although the idea sounded good at the time, I'm not satisfied with our current solution.

I have a couple of (obvious) choices:
1.) Greatly improve routines for thumbnail generation / publishing
2.) Fallback to using OpenCms' native image handling capabilities

Do any of you guys handle thumbnail / images in ways I haven't thought of? 

To those of you who are using OpenCms' parameter-based scaling for thumbnails: how is that working? -We had a lot of OOM exceptions when we used it, which is one reason we created the custom routines for thumbnail handling (we wanted more control over garbage collection).

Hope some of you are willing to share! :)

Cheers,
Paul


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list