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 the same problem. The max execution time of 30 seconds is reached on large images.
My request though, I rather not increases the max_execution_time. Isn't there a more efficient way to resize images with the GD library? I'm not quite sure what is going on in the x, y loop in the upload class. You copying pixel per pixel? Is there a way to use the GD library for resizing and converting within the class?Reply
My request though, I rather not increases the max_execution_time. Isn't there a more efficient way to resize images with the GD library? I'm not quite sure what is going on in the x, y loop in the upload class. You copying pixel per pixel? Is there a way to use the GD library for resizing and converting within the class?
I plan a future rewrite of the class where ImageMagick could be used in place of GD, which will be more efficient.