Live data from Hacker News

Why does this png display differently in Chrome/Firefox than in Safari/IE?

stackoverflow.com

1–10 of 40 posts

Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?

#4
The the image consists of a checkerboard-style pattern of pixels. The "dark" pixels form the apple image, while the "light" ones show the pear. The answer to the SO question suggests that the gamma correction information (which is used by Chrome and FF, but not by older IE) makes the image darker, blacking out the apple and revealing the pear. Without gamma correction, the apple is visible, and the pear becomes a light-colored ghost.

edit: I put together the pieces! yay! :D

Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?

#7
post #6

Interesting that Chrome (on OS X) displays a pear. I was under the impression Chrome used Core Graphics which would have exhibited this behaviour too? Maybe not.

Chrome uses Skia instead of CoreGraphics according to this: http://paulirish.com/2013/webkit-for-developers#webkit-commo...

Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?

#10
post #6

Interesting that Chrome (on OS X) displays a pear. I was under the impression Chrome used Core Graphics which would have exhibited this behaviour too? Maybe not.

Chrome for Mac used to use CoreGraphics, but it switched to Skia because Skia was a lot faster at drawing stuff. (It still uses CoreText for rasterizing fonts, and Cocoa for drawing buttons.)
Post reply on HN