Some JPEG images are not working in IE
- by jwandborg
Hello,
I have a press archive. The press archive displays automattically created thumbnails as links to a PDF document.
This is what i get in IE 6, 7 & 8:
While it works fine in Chrome:
The thumbnails are automatically created by imagemagick:
$cmd = 'convert ' . $_FILES['file']['tmp_name'] # This is a PDF file
. '[0]' # This indicates that it the first page that should be converted
. ' -resize "120x120" ' # This is the size of the thumbnail
. $thumb_path; # This is the destination
$resize_output = exec($cmd);
A command can look like this
convert /tmp/AcXDYe[0] -resize "120x120>" /var/www[...]
However
I looked a little closer on the images and it seems that they are a little different and this is a theme among all the failing images
Image that does'nt work in IE: http://regex.info/exif.cgi?url=http://bit.ly/aFTL3T
Image that works fine: http://regex.info/exif.cgi?url=http://bit.ly/b71B7R
So, can i change my imagemagick command so that creates IE-compatible JPEGS?