Alex Rivera | Logout

JPEG Shows in Firefox but Not IE8

Asked 2009-07-30T03:18:12.147
16

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?

Edit
Report

2 Answers

56

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
answered 2010-01-27T00:29:24.613
3

If you need to do CMYK to RGB conversion on a whole batch of JPEG-images, this command may be helpful to you:

for i in *.jpg; do convert "$i" -colorspace RGB "$i"; done

PS: If you'd like to see what is going on, just add -verbose:

for i in *.jpg; do convert "$i" -colorspace RGB -verbose "$i"; done
answered 2010-11-24T20:22:24.133

Your Answer