Problems uploading images with extra dots (.)

See all posts Reply

Problems uploading images with extra dots (.) new!
by Marcelo, 14 years, 1 month ago
Hi fellas,

I'm reporting an error which ocurred to me so many times.
If you upload a image with the name like AAA_BBB.21.jpg causes an error (Error in creating JPEG image from source.)Reply
Re: Problems uploading images with extra dots (.) new!
by colin, 14 years, 1 month ago
It should work.

Can you copy here the logs produced by the class when you upload such an image?Reply
Re: Problems uploading images with extra dots (.) new!
by Marcelo, 14 years, 1 month ago
Okay, here is:

system information
- class version : 0.29
- operating system : Linux
- PHP version : 5.2.12
- 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
determining MIME type
- Checking MIME type with Fileinfo PECL extension
Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
MIME type detected as image/jpeg by UNIX file() command
- MIME validated as image/jpeg
source variables
- You can use all these before calling process()
file_src_name : P050310_11.12.JPG
file_src_name_body : P050310_11.12
file_src_name_ext : jpg
file_src_pathname : /home/marcelodea1/tmp/php62g5et
file_src_mime : image/jpeg
file_src_size : 790585 (max= 67108864)
file_src_error : 0
- source file is an image
image_src_x : 2592
image_src_y : 1944
image_src_pixels : 5038848
image_src_type : jpg
image_src_bits : 8
process file to temp/
- file size OK
- file mime OK : image/jpeg
- new file name ext : jpeg
- new file name body : 67
- file name safe format
- destination variables
file_dst_path : temp/
file_dst_name_body : 67
file_dst_name_ext : jpeg
- image operation, change extension for conversion type
- checking for auto_rename
- destination file details
file_dst_name : 67.jpeg
file_dst_pathname : temp/67.jpeg
- 67.jpeg doesn't exist already
- image resizing or conversion wanted
- error: Error in creating JPEG image from source.
Reply
Re: Problems uploading images with extra dots (.) new!
by Marcelo, 14 years, 1 month ago
Really, the problem isn't with the dots, and now I don't even guess nothing...


Working image:
P050310_11.11.JPG size:682 kb

Problematic image:
P050310_11.12.JPG size:772 kb

Maybe it's size?Reply
Re: Problems uploading images with extra dots (.) new!
by colin, 14 years, 1 month ago
It is probably the dimensions of the picture.

See this threadReply