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.
Hello, first greate file upload class. Got this issue, when uploading large images, i want to resize them to surtin sizi before saveing them. But i am getting this error every time image needs to be resized: atal error: Maximum execution time of 30 seconds exceeded in upload_class.php on line 4270
In the code on line 4270: $rgba = imagecolorat($image_dst, $x, $y);
Images that dont need to be resized upload okay. Here is the function call:
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
Got this issue, when uploading large images, i want to resize them to surtin sizi before saveing them. But i am getting this error every time image needs to be resized: atal error: Maximum execution time of 30 seconds exceeded in upload_class.php on line 4270
In the code on line 4270: $rgba = imagecolorat($image_dst, $x, $y);
Images that dont need to be resized upload okay.
Here is the function call:
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.