JPEG Shows in Firefox but Not IE8

Adam picture Adam · Jul 30, 2009 · Viewed 25.9k times · Source

I'm working on a Sidebar Gadget and cannot get my JPEGs to show up (PNGs work). When I try to open the file by itself in IE8 it doesn't work. Firefox, of course, can open it fine.

JPEG Details:

Dimensions: 1080X900 180 dpi Bit depth 24 Color representation: uncalibrated

I've found some things talking about the images being compressed incorrectly (?) but I haven't been able to get it working...

Any clues?

Answer

converter42 picture converter42 · Jan 27, 2010

IE8 drops support for CMYK JPEG and renders them as the infamous red X without so much as a warning.

If you have ImageMagick:

identify -verbose image.jpg

will show you the image colorspace. If it's CMYK, you can convert to RGB with:

convert broken.jpg -colorspace RGB fixed.jpg