Unable to create thumbnail after successful upload

See all posts Reply

Unable to create thumbnail after successful upload new!
by Erb, 15 years, 10 months ago
Hello, all. I can't seem to resolve this issue. I am able to have a customer upload an image successfully, but I'm unable to create the thumbnail successfully. Here is the log and error - thanks in advance for your help.

Error:
"Error in creating JPEG image from source."
User's browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
User's email: xxxxxxxxx@yahoo.com
Additional: system information
- 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 : 008.jpg
file_src_name_body : 008
file_src_name_ext : jpg
file_src_pathname : /tmp/phpFJgtEx
file_src_mime : image/pjpeg
file_src_size : 312299 (max= 78643200)
file_src_error : 0
- source file is an image
image_src_x : 1800
image_src_y : 1200
image_src_pixels : 2160000
image_src_type : jpg
image_src_bits : 8
process file to ./uploaded_files/
- file size OK
- file mime OK : image/pjpeg
- file name safe format
- destination variables
file_dst_path : ./uploaded_files/
file_dst_name_body : 008
file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 008.jpg
file_dst_pathname : ./uploaded_files/008.jpg
- no overwrite checking
- no image processing wanted
- process OK
< b>process file to ./uploaded_files/
- file size OK- f ile mime OK : image/pjpeg
- file name body add : _tmb
- file name safe format
- destination variables
file_dst_path : ./uploaded_files/
file_dst_name_body : 008_tmb
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 008_tmb.jpg
file_dst_pathname : ./uploaded_files/008_tmb.jpg
- no overwrite checking
- image resizing or conversion wantedReply
Re: Unable to create thumbnail after successful upload new!
by colin, 15 years, 10 months ago
There may be several causes. For instance, are you sure that the image is indeed in JPEG format? Also, you hard drive may be full, or the permissions are wrongly set on the destimation directory.

But if I look at the log, it looks to me like the first upload works, and the second fails. Are you calling $foo->clean() in between the two? If yes, you should remove it, as calling it in between removes the uploaded image.Reply