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 some update for you. Haven't heard of you for a long time, so I did some code changes myself regarding the veeeery slow image_auto_rotate and auto_flip functions. (In fact sadly these aren't real functions but simple if-statements, if these would have been functions/methods I could have easily extended your class and create overrides methods...)
Here is the code I changed: In your $auto_flip statement you need to replace this (Old):
I have some update for you.
Haven't heard of you for a long time, so I did some code changes myself regarding the veeeery slow image_auto_rotate and auto_flip functions. (In fact sadly these aren't real functions but simple if-statements, if these would have been functions/methods I could have easily extended your class and create overrides methods...)
Here is the code I changed:
In your $auto_flip statement you need to replace this (Old):
with this (New):
And in your $auto_rotate statement you need to replace this (Old):
with this (New):
To make it rotate the images correctly you also have to change your exif-orientation cases to this (New):
Hope you can use it!
This will make the uploadtimes with image-rotation a lot faster!