Problems with image size

See all posts Reply

Problems with image size new!
by Nicola, 14 years, 9 months ago
Hi,
i'm not able to process images bigger than 100/120KByets.
I've read about server memory issues, but my memory setting limit is 128M
Chan you help me?

This is the log
system information
- class version : 0.27
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- MIME type detected as image/jpeg by UNIX file() command
- source variables
file_src_name : 226k.jpg
file_src_name_body : 226k
file_src_name_ext : jpg
file_src_pathname : /tmp/phpcnD5u3
file_src_mime : image/jpeg
file_src_size : 231884 (max= 33554432)
file_src_error : 0
- source file is an image
image_src_x : 2000
image_src_y : 2791
image_src_pixels : 5582000
image_src_type : jpg
image_src_bits : 8
process file to test/
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
file_dst_path : test/
file_dst_name_body : 226k
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 226k.jpg
file_dst_pathname : test/226k.jpg
- 226k.jpg doesn't exist already
- image resizing or conversion wanted
process file to test/
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
file_dst_path : test/
file_dst_name_body : 226k
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 226k.jpg
file_dst_pathname : test/226k.jpg
- 226k.jpg doesn't exist already
- image resizing or conversion wanted
cleanup
- delete temp file /tmp/phpcnD5u3
Reply
Re: Problems with image size new!
by colin, 14 years, 9 months ago
I think you are still running out of memory. The size in KB doesn't matter much; the resolution is important when it comes to the memory.

Check out this post.

Basically, if it works with smaller resolutions, it means that you are running out of memory for the lasrger images.Reply
Re: Problems with image size new!
by Nicola, 14 years, 9 months ago
Thanks, but i think it's not that... from the log above:
image_src_x : 2000
image_src_y : 2791
image_src_pixels : 5582000
image_src_bits : 8


So, 5.582.000x8 = 44.656.000 bits

My PHP memory limit is 128MB... it should be enough, isn't it?
Thanks again!Reply
Re: Problems with image size new!
by colin, 14 years, 9 months ago
Not necessarily enough.

The things to test are:
- does it work for smaller images? If yes, you have a memory issue with larger files.
- does it work for the large images if you increase the memory? If yes, you have a memory issue with larger files.Reply
Re: Problems with image size new!
by Nicola, 14 years, 9 months ago
... and the error i get loading that image with your test page is

"file not uploaded to the wanted location Error: Error in creating JPEG image from source."

Thanks again!Reply