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.
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
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.
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
I tried different jpeg files without any effect.
Gif's seem to work fine.
Secondly, what does say your phpinfo() in the GD section? Does it indicate support for JPEG?
phpinfo says :
In the PHP info, you should have in the section GD, in the table underneath, the following line:
Also, is the destination directory writable? Try to chmod it to 777 during the tests.
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 :)
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 helps