Forum Moderators: not2easy

Message Too Old, No Replies

Photo color doesn't match page color

Color, Photo,

         

jspafford

2:37 pm on Mar 3, 2010 (gmt 0)

10+ Year Member



Hello,
I am designing a website for a non profit group. I had to change the white logo.gif file to match the background color of the page. However, it appears as if I have the 6 digit color set to the same for both the background of the webpage and the "paint" bucket in Photoshop when I fill in the picture background, but once loaded into the webpage the colors are not the same.

What am I missing?

Just saw I can't post a link, so I have no idea how to show anyone...lol

Thanks!

rocknbil

6:52 pm on Mar 3, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard jspafford, possibly a web-safe colors issue?

Or, another possibility, does the document validate [validator.w3.org]? Colors are one area where Quirks Mode can fail to correctly render some colors. Example, #ff0000 is valid in Standards Compliance Mode, ff0000 is not.

Another likely possibility, when you change the color of the image, make sure you are in RGB mode first, then convert it back to indexed color. The reason being, indexed color (.gif, some png) is a reduced palette of colors, this is their advantage in generating super-small file sizes. If you specify a certain color in indexed color mode, it will use the closest approximation of that color in it's internal pallet. So using the above example, in a 16 bit indexed color, a color like #b70000 (low chroma red) is likely to render as #ff0000.

The best solution of all, really, is to make the "background areas" of the .gif transparent. Then ya' don't hafta' worry about it. :-P