views:

39

answers:

3

Something is puzzling me - why does this image appear different in every browser?

Image in IE9 (and Windows Photo Viewer):
Image in IE9

Image in Firefox (and Photoshop):
Image in Firefox

Image in Chrome (and Irfanview):
Image in Chrome

What is going on in their decoding processes of the JPEG to make the eventual output so different?

(View it in IE, Firefox, Chrome, etc. to see what I mean.)

+2  A: 

JPEG can be encoded in RGB or CMYK. These nicities usually occur when it's CMYK. Open the file in an image editing program and save it as RGB JPEG, and salute the CMYK printers, which will now have the different results you previously had in the browser.

Quandary
This one does appear to be encoded as RGB, according to Photoshop at least.
Isaac Zigzag
Anyway, copy-paste it to a new image and save that. That probably solves your problem. If not, try another graphics program.
Quandary
It's ok it's not a problem, more just a curiosity :) Thanks for your answer though!
Isaac Zigzag
A: 

I'm only guessing.
If the image was created to show these differences perhaps it's not a normal image which was encoded, but an invalid one where the calculated colors are outside of the 0 to 255 range and different decoders handle these differently.

CodeInChaos
That would seem to make sense, given that it appears to be displaying a very limited range of colours, and distinguishing individual pixels in the 8x8 blocks.
Isaac Zigzag
+1  A: 

If you change the color profile of that particular image from CMYK to sRGB in Photoshop, for instance, it will appear more or less equally in all browsers.

Jevgeni Bogatyrjov
Interesting, I didn't know that would make a difference. However, Photoshop reports that this image is RGB colour space not CMYK.
Isaac Zigzag
When I first downloaded your image (http://imgur.com/UNZTe.jpg), I swear it was CMYK in my Photoshop :-). If you save it and then test it with browsers, it will appear normal again. PS: My answer appears to be similar to the Quandarys', which was 5 mins before mine.
Jevgeni Bogatyrjov

related questions