Error: No create from JPEG support

See all posts Reply

Error: No create from JPEG support new!
by Koen, 16 years, 2 months ago
Every time I try to upload a jpg file and resize it, I get a 'Error: No create from JPEG support' error.

I tried different jpeg files without any effect.
Gif's seem to work fine.Reply
Re: Error: No create from JPEG support new!
by colin, 16 years, 2 months ago
First, are you sure it is a JPEG? Sometimes, BMPs are named as JPEG, but are not. You can check that the two first bytes are FFD8. A BMP file would start by 424D.

Secondly, what does say your phpinfo() in the GD section? Does it indicate support for JPEG?Reply
Re: Error: No create from JPEG support new!
by Koen, 16 years, 2 months ago
Im 100% sure the uploads I tried were jpegs,

phpinfo says :
image/gif, 
image/x-xbitmap, 
image/jpeg, 
image/pjpeg, 
application/vnd.ms-excel, 
application/vnd.ms-powerpoint, 
application/msword, 
application/x-shockwave-flash, */*
Reply
Re: Error: No create from JPEG support new!
by colin, 16 years, 2 months ago
OK.

In the PHP info, you should have in the section GD, in the table underneath, the following line:
JPG Support 	enabled

Also, is the destination directory writable? Try to chmod it to 777 during the tests.Reply
Re: Error: No create from JPEG support new!
by Koen, 16 years, 2 months ago
I looked up the gd section, and
JPG Support enabled is just missing.
So I guess thats the problem.. :'(
Since its not my server im running my website on, I can't change it.

Tnx for help :)Reply
Re: Error: No create from JPEG support new!
by Mario, 10 years, 6 months ago
Hello, I encountered same error and JPEG support was enabled, the problem was with files permission.
Directory was set to 777 but file (image) inside that folder that class.upload was overwriting and that image didn't have the right permissions.
Image was chmod 644 but not apache (www-data) user and class.upload did not have privileges to overwrite it and returned "No JPEG create support" error.
hope this helpsReply