<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: PNG color oddities in IE</title>
	<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/</link>
	<description>It&#8217;s a work in progress</description>
	<pubDate>Fri, 25 Jul 2008 12:16:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: PNG - What Color Consistency?</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-2447</link>
		<pubDate>Wed, 31 Jan 2007 17:00:07 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-2447</guid>
					<description>[...] And in other news, there may be PNG color oddities in IE. More testing will be necessary since I saw no noticiable difference in IE when I used PNGs. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] And in other news, there may be <abbr title="Portable Network Graphics">PNG</abbr> color oddities in <abbr title="Internet Explorer">IE</abbr>. More testing will be necessary since I saw no noticiable difference in <abbr title="Internet Explorer">IE</abbr> when I used PNGs. [&#8230;]
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: Netscraps &#187; Blog Archive &#187; IE6/IE7 PNG gAMA bug makes PNGs appear darker</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1496</link>
		<pubDate>Fri, 27 Oct 2006 22:56:32 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1496</guid>
					<description>[...] Searching online, I found this is a known bug with IE that stems from a flawed interpretation of the PNG&amp;#8217;s gAMA setting. It&amp;#8217;s fantastic that the IE team added PNG alpha transparency to IE7, but apparently they kept the gAMA bug in IE7 to make sure browser compatibility specialists keep their jobs for years to come. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Searching online, I found this is a known bug with <abbr title="Internet Explorer">IE</abbr> that stems from a flawed interpretation of the <abbr title="Portable Network Graphics">PNG</abbr>&#8217;s gAMA setting. It&#8217;s fantastic that the <abbr title="Internet Explorer">IE</abbr> team added <abbr title="Portable Network Graphics">PNG</abbr> alpha transparency to <abbr title="Internet Explorer 7">IE7</abbr>, but apparently they kept the gAMA bug in <abbr title="Internet Explorer 7">IE7</abbr> to make sure browser compatibility specialists keep their jobs for years to come. [&#8230;]
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: So That&#8217;s Why PNG Images Don&#8217;t Always Match Background Colors in IE&#8230; -- What About Paul?</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1418</link>
		<pubDate>Thu, 31 Aug 2006 17:28:39 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1418</guid>
					<description>[...] I&amp;#8217;ve been running into this problem where PNG images appear darker than the same color coded in CSS as a background color.  It hasn&amp;#8217;t been a huge deal, but I like the PNG format and prefer it to GIF when designing websites, so let&amp;#8217;s just say it&amp;#8217;s become a nuisance.  Now, I figured it had something to do with the way IE interprets and renders gamma &amp;#8220;correction&amp;#8221; within each PNG file, and finally today I stumbled across a site that explains this phenomenon in more detail.  The site also doubles as a great example of comments adding value to a blog post.  A tool is recommended called TweakPNG that will adjust the inner-workings of a PNG file created by Photoshop/GIMP/whatever.  Written by Paul [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] I&#8217;ve been running into this problem where <abbr title="Portable Network Graphics">PNG</abbr> images appear darker than the same color coded in <abbr title="Cascading Style Sheets">CSS</abbr> as a background color.  It hasn&#8217;t been a huge deal, but I like the <abbr title="Portable Network Graphics">PNG</abbr> format and prefer it to GIF when designing websites, so let&#8217;s just say it&#8217;s become a nuisance.  Now, I figured it had something to do with the way <abbr title="Internet Explorer">IE</abbr> interprets and renders gamma &#8220;correction&#8221; within each <abbr title="Portable Network Graphics">PNG</abbr> file, and finally today I stumbled across a site that explains this phenomenon in more detail.  The site also doubles as a great example of comments adding value to a blog post.  A tool is recommended called TweakPNG that will adjust the inner-workings of a <abbr title="Portable Network Graphics">PNG</abbr> file created by Photoshop/GIMP/whatever.  Written by Paul [&#8230;]
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: Aaron</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1221</link>
		<pubDate>Sun, 25 Jun 2006 19:25:38 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1221</guid>
					<description>Thanks for the extra details Heri.</description>
		<content:encoded><![CDATA[<p>Thanks for the extra details Heri.
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: Heri</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1172</link>
		<pubDate>Tue, 20 Jun 2006 17:39:59 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-1172</guid>
					<description>There is a fix for the PNG problem, but it's not a long term fix. Read
&lt;strong&gt;&lt;a href=&quot;http://www.w3.org/Graphics/PNG/platform.html&quot; title=&quot;PNG Gamma Correction Explained&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Graphics/PNG/platform.html&lt;/a&gt;&lt;/strong&gt;
(Please read that link before reading the rest of my message)

Now, that's pretty cool isn't it? Well that is also where the problem lies when viewing PNG images in IE. This problem has long been blamed on Photoshop giving PNG images an incorrect gAMA chunk, but the problem only existed with Photoshop 5 and Photoshop 5.5. In other words, Photoshop no longer has this bug.

You see, IE doesn't use a correct gamut setting, thus PNG images will appear darker; and back when Photoshop 5.0 and 5.5 gave incorrect gAMA chunks to PNG images it only aggravated the problem further. But since Adobe fixed the PNG gAMA chunk problem in Photoshop 6.0+, the current problem lies entirely with IE. But there is a way to do a short term fix for it.

There's several PNG tools out there, but I use one called TweakPNG.
&lt;strong&gt;&lt;a href=&quot;http://entropymine.com/jason/tweakpng/&quot; title=&quot;TweakPNG&quot; rel=&quot;nofollow&quot;&gt;http://entropymine.com/jason/tweakpng/&lt;/a&gt;&lt;/strong&gt;

To fix the gAMA problem simply remove the gAMA chunk altogether. Now PNG images will be displayed correctly in IE and still work in FF, NS, O, etc. Yet you can still take advantage of PNG alpha transparency and the smaller file sizes. Also consider removing cHRM, iCCP, and pHYs since they aren't needed to display a PNG in a web browser either, and will make the final file size even smaller.

However, there is one major drawback. You can no longer take advantage of gAMA (well, duh). This means that if you made your design on a PC, it will look much brighter on a Mac, and if you made your design on a Mac, it will look much darker on a PC. Therefore it will act the same as a GIF or JPEG would, except you can still take advantage of Alpha Transparency and such. So just like a GIF made on a Mac will look darker on a PC, and a GIF made on a PC will look brighter on a Mac, thus PNG will now once again do the same.

It’s a no-win situation really. You could keep the gAMA chunk and just use CSS to put a 1*1px PNG image for your page and content backgrounds; that way your PNG images won’t look out of place in IE and still work on FF, NS, and O. But the problem is, of course, now your entire page will look slightly darker in IE then in FF, NS, or O. But at least it would all be in unison. If you do this you also don’t have to worry about your design looking too bright on a Mac if you designed it on a PC, or looking to dark on a PC if you designed it on a Mac.

Or, like I mentioned earlier, you could simply remove the gAMA chunk to make everything unison in all browsers again, except now, just like when you use GIF or JPEG, everything will look brighter on a Mac if you designed it on a PC, and darker on a PC if you designed it on a Mac. gAMA is one of the coolest features about PNG images so it's a shame that it needs to be removed in order for a PNG to be displayed properly without using 1*1px PNGs for backgrounds and such.

My personal preference is to remove the gAMA chunk since most people that will view my websites use PCs (and therefore I don’t have to worry much about Mac users seeing something a lot brighter). There is talk that the final version of IE7 that will be shipped with Windows Vista will have the gAMA bug fixed (and therefore the whole PNG problem will be over once and for all since IE7 finally supports Alpha Transparency). But as of yet the beta version of IE7 doesn’t have the gAMA problem fixed, so I guess we’ll just have to see.</description>
		<content:encoded><![CDATA[<p>There is a fix for the <abbr title="Portable Network Graphics">PNG</abbr> problem, but it&#8217;s not a long term fix. Read<br />
<strong><a   href="http://www.w3.org/Graphics/PNG/platform.html" title="PNG Gamma Correction Explained"   rel="nofollow"><a href='http://www.w3.org/Graphics/PNG/platform.html' rel='nofollow'>http://www.w3.org/Graphics/PNG/platform.html</a></a></strong><br />
(Please read that link before reading the rest of my message)</p>
<p>Now, that&#8217;s pretty cool isn&#8217;t it? Well that is also where the problem lies when viewing <abbr title="Portable Network Graphics">PNG</abbr> images in <abbr title="Internet Explorer">IE</abbr>. This problem has long been blamed on Photoshop giving <abbr title="Portable Network Graphics">PNG</abbr> images an incorrect gAMA chunk, but the problem only existed with Photoshop 5 and Photoshop 5.5. In other words, Photoshop no longer has this bug.</p>
<p>You see, <abbr title="Internet Explorer">IE</abbr> doesn&#8217;t use a correct gamut setting, thus <abbr title="Portable Network Graphics">PNG</abbr> images will appear darker; and back when Photoshop 5.0 and 5.5 gave incorrect gAMA chunks to <abbr title="Portable Network Graphics">PNG</abbr> images it only aggravated the problem further. But since Adobe fixed the <abbr title="Portable Network Graphics">PNG</abbr> gAMA chunk problem in Photoshop 6.0+, the current problem lies entirely with <abbr title="Internet Explorer">IE</abbr>. But there is a way to do a short term fix for it.</p>
<p>There&#8217;s several <abbr title="Portable Network Graphics">PNG</abbr> tools out there, but I use one called TweakPNG.<br />
<strong><a   href="http://entropymine.com/jason/tweakpng/" title="TweakPNG"   rel="nofollow"><a href='http://entropymine.com/jason/tweakpng/' rel='nofollow'>http://entropymine.com/jason/tweakpng/</a></a></strong></p>
<p>To fix the gAMA problem simply remove the gAMA chunk altogether. Now <abbr title="Portable Network Graphics">PNG</abbr> images will be displayed correctly in <abbr title="Internet Explorer">IE</abbr> and still work in FF, NS, O, etc. Yet you can still take advantage of <abbr title="Portable Network Graphics">PNG</abbr> alpha transparency and the smaller file sizes. Also consider removing cHRM, iCCP, and pHYs since they aren&#8217;t needed to display a <abbr title="Portable Network Graphics">PNG</abbr> in a web browser either, and will make the final file size even smaller.</p>
<p>However, there is one major drawback. You can no longer take advantage of gAMA (well, duh). This means that if you made your design on a PC, it will look much brighter on a Mac, and if you made your design on a Mac, it will look much darker on a PC. Therefore it will act the same as a GIF or JPEG would, except you can still take advantage of Alpha Transparency and such. So just like a GIF made on a Mac will look darker on a PC, and a GIF made on a PC will look brighter on a Mac, thus <abbr title="Portable Network Graphics">PNG</abbr> will now once again do the same.</p>
<p>It’s a no-win situation really. You could keep the gAMA chunk and just use <abbr title="Cascading Style Sheets">CSS</abbr> to put a 1*1px <abbr title="Portable Network Graphics">PNG</abbr> image for your page and content backgrounds; that way your <abbr title="Portable Network Graphics">PNG</abbr> images won’t look out of place in <abbr title="Internet Explorer">IE</abbr> and still work on FF, NS, and O. But the problem is, of course, now your entire page will look slightly darker in <abbr title="Internet Explorer">IE</abbr> then in FF, NS, or O. But at least it would all be in unison. If you do this you also don’t have to worry about your design looking too bright on a Mac if you designed it on a PC, or looking to dark on a PC if you designed it on a Mac.</p>
<p>Or, like I mentioned earlier, you could simply remove the gAMA chunk to make everything unison in all browsers again, except now, just like when you use GIF or JPEG, everything will look brighter on a Mac if you designed it on a PC, and darker on a PC if you designed it on a Mac. gAMA is one of the coolest features about <abbr title="Portable Network Graphics">PNG</abbr> images so it&#8217;s a shame that it needs to be removed in order for a <abbr title="Portable Network Graphics">PNG</abbr> to be displayed properly without using 1*1px PNGs for backgrounds and such.</p>
<p>My personal preference is to remove the gAMA chunk since most people that will view my websites use PCs (and therefore I don’t have to worry much about Mac users seeing something a lot brighter). There is talk that the final version of <abbr title="Internet Explorer 7">IE7</abbr> that will be shipped with Windows Vista will have the gAMA bug fixed (and therefore the whole <abbr title="Portable Network Graphics">PNG</abbr> problem will be over once and for all since <abbr title="Internet Explorer 7">IE7</abbr> finally supports Alpha Transparency). But as of yet the beta version of <abbr title="Internet Explorer 7">IE7</abbr> doesn’t have the gAMA problem fixed, so I guess we’ll just have to see.
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: Mike</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-288</link>
		<pubDate>Mon, 20 Mar 2006 12:05:18 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-288</guid>
					<description>PNG is always getting slated. It's about time the superior format made formal it's plans for World Domination!

I noticed this effect comparing ie/firefox and thought at first I was going mad... i'm SURE i got the old colour-picker to that graphic and made the background the same colour...</description>
		<content:encoded><![CDATA[<p><abbr title="Portable Network Graphics">PNG</abbr> is always getting slated. It&#8217;s about time the superior format made formal it&#8217;s plans for World Domination!</p>
<p>I noticed this effect comparing <abbr title="Internet Explorer">IE</abbr>/firefox and thought at first I was going mad&#8230; i&#8217;m SURE i got the old colour-picker to that graphic and made the background the same colour&#8230;
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: Aleksandar</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-282</link>
		<pubDate>Wed, 08 Mar 2006 14:22:49 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-282</guid>
					<description>I noticed this long time ago and switched to creating .gifs for IE. Then Safari came and started doing the same stuff with PNG and that was rather disheartening. A real shame.</description>
		<content:encoded><![CDATA[<p>I noticed this long time ago and switched to creating .gifs for <abbr title="Internet Explorer">IE</abbr>. Then Safari came and started doing the same stuff with <abbr title="Portable Network Graphics">PNG</abbr> and that was rather disheartening. A real shame.
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: Aaron</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-278</link>
		<pubDate>Mon, 27 Feb 2006 13:29:04 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-278</guid>
					<description>Thanks for the heads-up Andy, that makes perfect sense. Dually noted.</description>
		<content:encoded><![CDATA[<p>Thanks for the heads-up Andy, that makes perfect sense. Dually noted.
</p>]]></content:encoded>
				</item>
	<item>
		<title>by: Andy Budd</title>
		<link>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-277</link>
		<pubDate>Mon, 27 Feb 2006 00:46:41 +0000</pubDate>
		<guid>http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/#comment-277</guid>
					<description>Using PNG's is actually very problematic due to inconsistent gamma correction.

http://hsivonen.iki.fi/png-gamma/</description>
		<content:encoded><![CDATA[<p>Using <abbr title="Portable Network Graphics">PNG</abbr>&#8217;s is actually very problematic due to inconsistent gamma correction.</p>
<p><a  href='http://hsivonen.iki.fi/png-gamma/' rel='nofollow' rel="nofollow">http://hsivonen.iki.fi/png-gamma/</a>
</p>]]></content:encoded>
				</item>
</channel>
</rss>
