views:

194

answers:

2

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 is 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?

+2  A: 

I get the same problem with a static jpeg (made with Adobe Illustrator CS4).

<img src="{$PT_WWW_PATH}img/logo/logo_cominar_couleurs.jpg" alt="Cominar">

Edit:

The jpeg was using "PANTONE" color profile. I converted it to sRGB and now it works.

Sirber
+1 for the edit
Lord Torgamus
+2  A: 

The image site specifically says:

No color-space metadata and no embedded color profile: Windows and Mac web browsers treat colors randomly.

Images for the web are most widly viewable when in the sRGB color space and with an embedded color profile.

lunixbochs