开发者

PNG image is being rendered different in Chrome, FireFox, and Safari

开发者 https://www.devze.com 2023-02-18 06:31 出处:网络
When I display the following PNG in chrome, safari, and firefox I am seeing differences. http://bobcravens.com/demos/temp/logo.png

When I display the following PNG in chrome, safari, and firefox I am seeing differences.

http://bobcravens.com/demos/temp/logo.png

Here is a s开发者_如何学JAVAcreenshot of (left to right) Chrome, Safari, FireFox (all on a Mac).

PNG image is being rendered different in Chrome, FireFox, and Safari

I am certain this is going to be something simple (and that I probably should know), but haven't been able to determine the root cause.

Thanks for any help.

Bob


It appears that Safari is ignoring the gAMA chunk in that PNG. By stripping out the gAMA chunk from the PNG file, I get Firefox showing the image the same as Safari in your screenshot.


That's almost surely a gamma problem and/or an alpha channel problem.

Test your browser support here.

http://entropymine.com/jason/testbed/gamma/

http://entropymine.com/jason/testbed/pngtrans/

http://entropymine.com/jason/testbed/alphagamma/

Workaround: save your image in a "simpler" format (bmp or gif) and reexport it as png.

0

精彩评论

暂无评论...
验证码 换一张
取 消