class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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
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
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.
My time is very limited at the moment. However, if the feature was to be sponsored, that might speed up things ;)