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.
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 wantedReply
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