Conditional upload

See all posts Reply

Conditional upload new!
by Berto, 17 years, 2 months ago
I have created a web gallery. When uploading pics I would need your class to resize it to 90x120 or 120x90 depending on the image layout (portrait or landscape). How can I check image dimensions before processing it?Reply
Re: Conditional upload new!
by colin, 17 years, 2 months ago
There is no way to do that as of now.

What I could suggest is to call process() twice, so to create two thumbnails, and keep only the one you want (delete the one you don't want).

I will see if I can implement such a feature in the future to do it automatically.Reply
Re: Conditional upload new!
by Berto, 17 years, 2 months ago
Thanks. I would consider that a useful feature since places as flickr or picasa web albums list thumbnails in landscape or portrait format depending on image orientation.Reply
Re: Conditional upload new!
by colin, 17 years, 2 months ago
Yes, it would be useful... I will try to implement it at some point in the future.

My time is very limited at the moment. However, if the feature was to be sponsored, that might speed up things ;)Reply