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:

alt text

While it works fine in Chrome:

alt text

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

So, can i change my imagemagick command so that creates IE-compatible JPEGS?

© Stack Overflow or respective owner

Related posts about php

Related posts about imagemagick