Blank Page after upload.

See all posts See thread Reply

Re: Blank Page after upload. new!
by Dan Patterson, 12 years, 9 months ago
Hi,

I even have access to the php.ini via cpanel and it is currently set as 256M memory limit, so even if my ini_set calls are not working it should be fine.

However, I tried the exact same image on FF and it doesn't work. so it's the image that's the problem. it's a .jpg, file size is about the same as the one that works, but the pixel size is very different.

The processing I am using is:
$handle1->no_script=false;
$handle1->mime_check=false;
$handle1->mime_magic_check=false;
$handle1->file_auto_rename=false;
$handle1->file_overwrite= true;
if ($handle1->image_src_x > 1600 || $handle1->image_src_y > 1600) {
  $handle1->image_resize=true;
  $handle1->image_ratio=true;
  $handle1->image_x=1600;
  $handle1->image_y=1600;	
  $handle1->jpeg_quality=95;
}

So wonder if this is causing the problem?

Thanks for your help here.

Cheers, DanReply
Re: Blank Page after upload. new!
by colin, 12 years, 9 months ago
As I said, you are very likely running out of memory.

Your destination image is 1600x1600. This requires at least 1600*1600*8 which is about 20MB. Assuming your source image is 2000x2000, you will have to add at least 30MB. It is already 50MB just for the images to be in memory. To this, you add the memory required by your project, etc...

An easy test to see whether it is memory or not: change your destination sizes to 160x160, and try to upload an approx 200x200 pixels image. If this one uploads and resizes properly, but the larger images don't, then it is a memory issue.Reply