Why does this png display differently in Chrome/Firefox than in Safari/IE?
11–20 of 40 posts
Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#12Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#13Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#14The 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 lig…
But, my understanding is that for an image displayed 1-1 pixel-to-screen there is no intermediate math going on. So, there shouldn't be any opportunity for non-gamma-correct calculations to screw up the output.
Here's a nice example of non-gamma-correct browsers producing incorrect results after scaling an image: http://filmicgames.com/archives/354 also http://www.4p8.com/eric.brasseur/gamma.html But, in the SO question there is no scaling. So, I'm still confused about the difference in visual results between different applications directly displaying the image...
Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#15Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#16The 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 lig…
So obviously my various image viewers aren't reading the gamma correction to show the pear, however I'm more curious why I don't see the apple correctly if the image has been intended to show the apple without gamma/color correction?
My monitor is color calibrated, so shouldn't I just see the apple and not the pear?
Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#17The 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 lig…
Hmm... I'm quite familiar with gamma correction. For those who are not, I recently did an "Explain Like I'm Five" http://www.reddit.com/r/explainlikeimfive/comments/1aeuyb/el... But, my understanding is that for an image displayed 1-1 pixel-to-screen there is no intermediate math going on. So, there shouldn't be any opportunity for non-gamma-correct calculations to screw up the output. Here's a nice example of non-ga…
Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#18http://i.imgur.com/36EgeOF.png
It's a mix of Tux and the GNU logo. The strange thing is that Firefox shows Tux, and Chrome shows the GNU logo. Very strange considering both Firefox and Chrome show the pear. My understanding is that the GNU logo (the 'lighter' image) should be shown if the gamma correction is applied. Does anyone know what's going on here?
EDIT: By removing the iCCP color profile chunk, the image displays properly in Firefox.
For anyone interested in making one:
First, I put the two images on separate layers in photoshop. I changed the output levels on Tux to be from 0 to 210, darkening it slightly. I changed the output levels on the GNU logo to be from 215 to 255, making it very bright. Then I used a layer mask on the top layer with a grid pattern to mix the two images. The saved image was a mix of the relatively normal Tux pixels and the bright GNU pixels.
The final touch was editing the gAMA value in the PNG. Using the free program, TweakPNG, I set it to something very low, like in the pear image: 0.02. And that was it!
Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#19(My copy of GIMP is a bit outdated, but that shouldn't be a big deal for a basic feature like this, right?)
Re: Why does this png display differently in Chrome/Firefox than in Safari/IE?
#20Earlier quoted context omitted.
Hmm... I'm quite familiar with gamma correction. For those who are not, I recently did an "Explain Like I'm Five" http://www.reddit.com/r/explainlikeimfive/comments/1aeuyb/el... But, my understanding is that for an image displayed 1-1 pixel-to-screen there is no intermediate math going on. So, there shouldn't be any opportunity for non-gamma-correct calculations to screw up the output. Here's a nice example of non-ga…
Even when there's no scaling involved, gamma information embedded in an image can certainly be meaningful. Among other things, they can be used to correct for the fact that different OS's or devices can assume different default gamma factors. Without gamma correction, an image edited on a Mac might look different when viewed on a PC. If the image can tell the browser what gamma factor it was designed for, that proble…