Some JPEG images are not working in IE
Posted
by jwandborg
on Stack Overflow
See other posts from Stack Overflow
or by jwandborg
Published on 2010-03-16T18:03:12Z
Indexed on
2010/03/16
18:21 UTC
Read the original article
Hit count: 725
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?
© Stack Overflow or respective owner