Hi all
Is this possible or not ?
I want to investigate the possibility of a trigger that automatically creates thumbnails of uploaded images. In fact, ideally it would create a thumbnail and a 'medium' variation… a less comprehensive version of what Flickr does: http://www.flickr.com/photos/leprecon/620513487/sizes/m/ :unsure:
So lets say you upload an image from a digital camera of 1024x768px. The trigger will create a thumbnail of 100 pixels width, and a 'medium' version at 500 pixels width.
It would be really nice if the trigger fired conditionally on the size of the original - ie: if it's already smaller than 500 pixels wide, don't bother!
The thumbnail should be attached to the uploaded image as its asset thumbnail, and the medium size should be a 'variation' of the image, so that both can be accessed easily using %keywords%.
If it turns out to be relatively simple and the conditional bit is possible, it would be great to mimic exactly what flickr do and create 'small' and 'medium-640' variations as well. B)
Just look at: Deb Webb Simple Image Gallery tut.
I don’t know how to fire trigger conditionally on the size of the original, so I always create “small” & “medium” thumbs.
But later by using width condition in Paint Layout (some short RegEx required) I decide to:
- show "medium" thumb
or
- show orginal image uploaded
Paul