Firefox 3.5 色彩校正破解?
最终升级到 FF 3.5 后,我注意到我的一些网页存在颜色问题。 具体来说,假设我有一个 PNG 图像,其中的颜色与主体的背景颜色相同,但渲染时它的颜色比 Windows 上的颜色要浅。
在 Mac 上我没有看到此问题,在 FF3.0 - Windows 或其他系统上也没有看到此问题。
我可以在代码中添加一些技巧来使 FF 不对 PNG 进行颜色校正吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
我设法通过 pngcrush 运行所有 PNG 并删除颜色配置文件等的所有痕迹来解决这个问题。
I've managed to solve this by running all the PNGs through pngcrush and remove all traces of color profiles and such.
检查您的图片标记。 具体来说,我认为您可以通过编辑
gfx.color_management.mode
属性来更改 FF3.5 在这方面的行为(请参阅此处)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)这很可能是由于 Firefox 决定在 Firefox 3.5 中默认使用 ICC 颜色配置文件: 请参阅此帖子developer.mozilla.org
您可以在 FF3.5 中更改此设置,方法是在地址栏中输入“about:config”,然后搜索参数:gfx.color_management.mode 并将其设置为“0”(默认值)在 FF3.0 中)。
This is most likely due to the decision by Firefox to use ICC color profiles by default in Firefox 3.5: See this post on developer.mozilla.org
You can change this in FF3.5 by entering 'about:config' in the address bar, then searching for the parameter: gfx.color_management.mode and setting it to '0' (the default in FF3.0).
Firefox 3.5 现在默认支持 ICC 配置文件。 这意味着您可以通过操作系统设置控制 Firefox 的颜色输出。
您的 ICC 配置文件可能不正确,您必须在操作系统中进行调整。 我认为这不是 Firefox。 你不需要为此进行黑客攻击。
正如我怀疑的那样,这是一个客户端问题。
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.
我的网站的标题 jpg 也遇到同样的问题。 我尝试在 Photoshop 中再次保存它(这次保存时未选中 ICC 配置文件)。 结果:文件更小,颜色匹配。
谢谢!
I was having the same problem with the header jpg of my site. I tried to save it again in Photoshop (this time with ICC profile uncheked while saving). Results: files smaller, colors match.
Thanks!
此评论对我非常有帮助:
http://hacks.mozilla .org/2009/06/color- Correction/#comment-1490
我刚刚运行
了所有 JPEG,一切看起来都像安装 3.5 之前一样。
This comment was very helpful for me:
http://hacks.mozilla.org/2009/06/color-correction/#comment-1490
I just ran
on all of my JPEGs and everything looks like it did before installing 3.5.
您可以在没有配置文件数据的情况下保存图像(例如,如果您有 JPG 并将其保存在没有该功能的旧照片编辑器中),那么 Firefox 不会更改它。 我不得不说,这是一个超级令人讨厌的功能。 它们应该有一个全局开关,您可以将其嵌入到 HTML 代码中来处理它。 布拉啊。
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.
我知道这是一个非常旧的线程,只是想更新。 我在使用 IE9 和 IE9 时遇到了这个问题。 FF 17. 对我来说,问题在于 Photoshop 中使用的颜色配置文件。 这篇文章解决了我的问题http://bjango.com/articles/photoshop/
希望这可以帮助别人那里。
快乐的网站建设!
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!
尝试保存网络图像(如果您使用的是 Photoshop),因为我猜它的色阶不同。
Try saving images for web (if you're using photoshop), because I guess it's different color scale.