Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Color problems in Safari

Color problems in Safari
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2002
Location: Cincinnati, OH
Status: Offline
Reply With Quote
Jan 14, 2005, 12:27 AM
 
I created a PNG image in Photoshop for a friends site and matched the background color using the same websafe color code from the CSS file. In FireFox, the image matches up perfectly, but when displayed in Safari, the PNG is dark and does not match the background. Here is a screen shot:

http://anonx.spymac.net/colorprob.jpg

I am not a pro at this at all. Can someone tell me what i'm doing wrong?

Thanks - Branden
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jan 14, 2005, 06:55 AM
 
Which platform did you create the image on? I suspect that the problem has to do with Safari using PNG's built-in gamma correction on the image, but not on the CSS colors. Firefox doesn't correct either one, so while its rendering is technically incorrect the problem isn't noticeable. Safari should either correct both or not correct either one.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Jan 14, 2005, 06:56 AM
 
Safari is smart enough to use the file's embedded color profile, and the other browsers aren't.

There was discussion about this in another forum recently.

I would do one of two things in this scenario. Either make the background transparent so matching won't enter, or save as a jpeg or gif without a color profile embedded.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jan 14, 2005, 07:14 AM
 
Originally posted by registered_user:
Safari is smart enough to use the file's embedded color profile, and the other browsers aren't.
The problem is that it's smart enough to correct the image, but not smart enough to correct the CSS. That's why the color difference is noticeable.

Whether you ignore gamma or correct it, things will look OK as long as you're consistent about it. The problem is that Safari isn't consistent. Mozilla actually corrected everything consistently for a while -this was in the days before Firefox- but Mac users complained about images being "too dark" so they removed the feature.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:05 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2