problems with image resize

See all posts Reply

problems with image resize new!
by anke, 15 years, 9 months ago
Hallo,

when I try to resize a jpg I get following error: 'Error in creating JPEG image from source'. The upload is possible without any problems.
The jpg is 2.130KB, 3072x2304

But the resizing process is successful with another jpg (3.089 KB, 3111x2333).

Could you help me? Thanx!

the log:
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- source variables
file_src_name : test_bad.jpg
file_src_name_body : test_bad
file_src_name_ext : jpg
file_src_pathname : C:\xampp\tmp\phpAB5.tmp
file_src_mime : image/jpeg
file_src_size : 2180608 (max= 33554432)
file_src_error : 0
- source file is an image
image_src_x : 3072
image_src_y : 2304
image_src_pixels : 7077888
image_src_type : jpg
image_src_bits : 8
process file to ./uploads/\
- file size OK
- file mime OK : image/jpeg
- new file name body : 121881038897_test_bad_resized
- file name safe format
- destination variables
file_dst_path : ./uploads/\
file_dst_name_body : 121881038897_test_bad_resized
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 121881038897_test_bad_resized.jpg
file_dst_pathname : ./uploads/\121881038897_test_bad_resized.jpg
- 121881038897_test_bad_resized.jpg doesn't exist already
- image resizing or conversion wanted
Reply
Re: problems with image resize new!
by colin, 15 years, 9 months ago
I would say that you are running out of memory. Or maybe the image that fails is not a valid JPEG image.

Search for memory in the site, or click here. You can also check this post.Reply
Re: problems with image resize new!
by anke, 15 years, 9 months ago
thanx for your fast answer!

As it functions with jpegs of bigger size (see above) I was sure that I don't run out of memory.

But I stored it again as jpeg and everything is fine now. So, it must have been something wrong with the jpeg :-)

Thanx againReply
Re: problems with image resize new!
by colin, 15 years, 9 months ago
Yes, I was wondering the same, as it was working for larger JPEGs (note that the filesize is irrelevant; only the number of pixels matter as the image is converted to bitmap in memory).

That's why I suggested a corrupted JPEG, which seems to have been the issue.Reply