...

View Full Version : Image changes color in IE



blaikus
02-25-2009, 02:18 AM
one of my banners changes to a darker color in IE but is the rite color in FF. ive fixed it by using conditional comments to change the image when in IE, but is there another way?

ta,
Blaikus

abduraooft
02-25-2009, 10:26 AM
Can we have a link to your page?

Rowsdower!
02-25-2009, 07:26 PM
If this is a PNG then it probably has something to do with the gamma correction that some browsers do/don't do for PNG images. I'm far from expert on the topic, but this is an issue I have heard of before and I don't know of any way to correct it. Even if you can get it looking right on your machine another viewer could have a similar problem (or so I hear).

I understand that GIF's are supposed to be better supported for gamma, but then there's the obvious reduction of quality...

Here's an article that touches on this topic a bit...
http://morris-photographics.com/photoshop/articles/png-gamma.html

The problem arises from the fact that browsers have traditionally treated the RGB values specified in CSS (and HTML), GIF and JPEG as identical (numerically and colorimetrically). With PNG, however, the stored gamma information is used to "correct" the RGB values prior to displaying the image, which means that they won't match other design elements when viewed in certain browsers. To complicate matters even further, not all browsers interpret this information in the same way: some ignore it completely, while others apply an arbitrary gamma adjustment.
I'm not confident that you could ever correct for crossbrowser viewing with just CSS...
Check out the reference there to PNGCrush - it looks like it can do what you need (http://pmt.sourceforge.net/pngcrush/).

Let me know how this works out for you...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum