I've created a script which implements jCrop to crop an image before displaying it. In the CMS the client needs to be able to upload logos, which fit a specific size as determined by our designer.
So I think I'm looking for something which can crop, resize and save out the original, a specific sized version and potentially other thumbnail sizes.
Please can anyone suggest a good solid, and pretty bullet proof method for this? So far I am using GD and passing in jCrop coords to create an image. It's causing chaos for the client, as they are uploading huge images and small ones and obviously having all kinds of issues with the results not being correct.
I figured that a class might be an idea, and I found this, http://pear.php.net/package/Image_Transform although I haven't actually tried it out yet.
As image uploads are such a mainstream feature of sites now, what are peoples tips for handling this potential black hole of user input?
Presently I validate on upload for <100kb and bmp, gif, jpg and png