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.
Just a quick follow up. Indeed, i have managed to change the order of auto-flip image & auto-rotate image to after the resize (only needed to change image_src_? to image_dst_? and place the code after "if ($this->image_resize) {...}"). This works MUCH faster and with multiple images (before 1 image was taking > 20 seconds, now 3 are taking < 10).
Will this have broken anything else (like crop, etc. although these seem to use image_dst too)?
But the auto-flip and auto-rotate must happen before any image processing occurs. Besides, resizing dimensions may be based on the source image dimensions, but the source image has to be rotated first.Reply
Just a quick follow up.
Indeed, i have managed to change the order of auto-flip image & auto-rotate image
to after the resize (only needed to change image_src_? to image_dst_? and place the code after "if ($this->image_resize) {...}").
This works MUCH faster and with multiple images (before 1 image was taking > 20 seconds, now 3 are taking < 10).
Will this have broken anything else (like crop, etc. although these seem to use image_dst too)?
Thanks Again
Jon
But the auto-flip and auto-rotate must happen before any image processing occurs. Besides, resizing dimensions may be based on the source image dimensions, but the source image has to be rotated first.