the dreaded “Warning: imagecreatefromjpeg() : ‘/tmp/filename’ is not a valid JPEG file in /phpfile.php on line xxx”
After a little digging around on Google I found this bug report. It seems that the GD library is less tolerant of buggy JPEG files than other programs. The solution suggested was to set GD to ignore JPEG error’s before processing the image, like this: ini_set(“gd.jpeg_ignore_warning”, 1); Hopefully that will work for you. One other … Read more