Forum Moderators: open

Message Too Old, No Replies

Color Problem

Firefox and Internet Explorer using Different Color Values.

         

Genius

12:43 am on Jan 30, 2005 (gmt 0)

10+ Year Member



Why are the different browsers showing different colors in images?

On my website template, the png images have a grayish background in place for some corners where the background doesn't cover. I viewed it in IE, screenshoted it, and then got the appropiate value for it. It turned out to be #737373. Then, after validating my page to meet XHTML 1.0 Strict Standards, I viewed the page in Mozilla Firefox. There I took another screenshot to find that the color on the image viewed in Firefox was #7E7E7E. Arn't the images supposed to show the same colors, if so, what could be the cause of this problem. I have fixed this problem by simply using a small repeating background image. I just want to know why are they different.

moltar

12:47 am on Jan 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could the problem be with PNG Alpha transparency?

tedster

2:12 am on Jan 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd also suggest checking the color depth setting on your graphics card.

One other point, if indeed the gray does represent png alpha transparency, then the color may be defaulting to whatever gray each browser has set for its page default background color.

zollerwagner

9:53 am on Jan 30, 2005 (gmt 0)

10+ Year Member



I was under the impression that each browser determines for itself how to render the colors in images. What you thought was #737373 might look different in different browsers.

But...

I just did a quick test of the same image in Foxfire and IE. The ColorCop read the same # for the same pixel, so maybe I'm wrong?

Orbite

4:27 am on Feb 1, 2005 (gmt 0)

10+ Year Member



IE has slightly broken alpha transparency. Mozilla Firefox has full support. That usually explains the colour difference.

[libpng.org...]

Genius

11:42 pm on Feb 2, 2005 (gmt 0)

10+ Year Member



Well, I think the last one is the likely problem. Its in the image, not the actual color used for the background, those were the same, its just the image.

Thanks for the help.