It is really an unfortunate over-engineering in the PNG format to include gamma correction. So many problems would have been avoided if PNGs just stored RGB values and let the renderer&#x2F;OS&#x2F;driver&#x2F;screen decide how to display it. Trying to do gamma correction based on various guesses about screens just lead to jarring color inconsistencies.<p>Here is great article about it. It is a few years old, so some of the problems are fixed now. <a href="https:&#x2F;&#x2F;hsivonen.fi&#x2F;png-gamma&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hsivonen.fi&#x2F;png-gamma&#x2F;</a>