Reply to Image resize failes (execution time)

Image resize failes (execution time) new!
by Gunther, 12 years, 9 months ago
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:
if($handle->file_is_image && $handle->image_src_x>2000){
  // resize image to 2000px width
  $handle->image_resize            = true;
  $handle->image_ratio_y           = true;
  $handle->image_x                 = 2000;
}
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important