Error in creating JPEG image from source.

See all posts Reply

Error in creating JPEG image from source. new!
by Josh, 13 years, 10 months ago
Hello,

I've been using this script for a long time and had no problems at all. It has suddenly stopped working (the host upgraded to php 5.2.16) and I can't get it to work.

Debug data as follows

/images/bands/b/TESTFILE.jpgsystem information
- class version : 0.30
- operating system : Linux
- PHP version : 5.2.16
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 128M (134217728 bytes)
- language : en_GB
source is a local file /tmp/php6H9hbT
- local 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 : php6H9hbT
file_src_name_body : php6H9hbT
file_src_name_ext :
file_src_pathname : /tmp/php6H9hbT
file_src_mime : image/jpeg
file_src_size : 250933 (max= 134217728)
file_src_error : 0
- source file is an image
image_src_x : 999
image_src_y : 633
image_src_pixels : 632367
image_src_type : jpg
image_src_bits : 8
process file to ../images/bands/b/
- file size OK
- file mime OK : image/jpeg
- new file name body : TESTFILE
- file name safe format
- destination variables
file_dst_path : ../images/bands/b/
file_dst_name_body : TESTFILE
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : TESTFILE.jpg
file_dst_pathname : ../images/bands/b/TESTFILE.jpg
- TESTFILE.jpg doesn't exist already
- image resizing or conversion wanted
- error: Error in creating JPEG image from source.


Folder permissions are fine, memory limit is fine. As I said it was all working and then stopped. I get no php errors, just the log error.

Any ideas?

Thanks.Reply
Re: Error in creating JPEG image from source. new!
by Josh, 13 years, 10 months ago
Problem solved.

The host had corrupted the GD library with the upgrade. A recompile solved the problem.Reply