Firefox 3.5 color correction hack?

2019-01-22 21:55发布

After finally getting down to upgrading to FF 3.5, I noticed that some of my web pages have color problems. Specifically, say I have a PNG image with a color in it which is meant to be the same as the body's background color but when it is rendered it comes out as lighter than it should be on Windows.

On Mac I'm not seeing this issue, and nor am I seeing it on FF3.0 - Windows or otherwise.

Is there some hack I can add to my code to make FF not color correct the PNG?

9条回答
贪生不怕死
2楼-- · 2019-01-22 22:19

This comment was very helpful for me:

http://hacks.mozilla.org/2009/06/color-correction/#comment-1490

I just ran

jpegtran -optimize -outfile out.jpg in.jpg

on all of my JPEGs and everything looks like it did before installing 3.5.

查看更多
Summer. ? 凉城
3楼-- · 2019-01-22 22:23

I know this is a really old thread, just wanted to update. I ran into this very problem with IE9 & FF 17. The problem for me was in the color profile used in Photoshop. This post solved my problem http://bjango.com/articles/photoshop/

Hope this helps someone out there. Happy web building!

查看更多
老娘就宠你
4楼-- · 2019-01-22 22:23

Try saving images for web (if you're using photoshop), because I guess it's different color scale.

查看更多
爷、活的狠高调
5楼-- · 2019-01-22 22:25

You can save your images with no profile data (for example if you have a JPG and save it in an old photo editor without that feature) then Firefox doesn't alter it. I have to say, that is a SUPER obnoxious feature. They should have a global on/off switch that you can embed into the HTML code to deal with it. BLah.

查看更多
Lonely孤独者°
6楼-- · 2019-01-22 22:26

Firefox 3.5 now supports ICC profiles per default. That means that you can control the color output of Firefox via your OS settings.
Propably, your ICC profile is not correct and you have to adapt it in your OS. It's not Firefox i think. You don't need a hack for this.

It's a client problem, as I suspect.

查看更多
三岁会撩人
7楼-- · 2019-01-22 22:30

Check your image tagging. Specifically I think you can change FF3.5's behaviour in this regard by editing the gfx.color_management.mode property (see here)

查看更多
登录 后发表回答