<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
	>
<channel>
	<title>Comments on: Web Graphic Transparency Tutorial &#8211; GIF and PNG</title>
	<atom:link href="http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/</link>
	<description>Music, Design, and Apparel</description>
	<lastBuildDate>Sun, 08 Jan 2012 14:13:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: John Lutner</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-960</link>
		<dc:creator>John Lutner</dc:creator>
		<pubDate>Fri, 31 Jul 2009 02:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-960</guid>
		<description>One thing that has been and, to my knowledge, still remains an issue is the fact that IE 7+ cannot properly render .png alpha.  It renders it slightly darker than the exact same image in .gif or .jpg.  This is not visible in photoshop for example, but is in the browser. This becomes a real issue for those with mixed file types. Your only option in that case is to convert all your files to .png! This issue is a real hinderance, as gifs are not able properly render more intricate gradual transparencies.  Fingers crossed for a fix.</description>
		<content:encoded><![CDATA[<p>One thing that has been and, to my knowledge, still remains an issue is the fact that IE 7+ cannot properly render .png alpha.  It renders it slightly darker than the exact same image in .gif or .jpg.  This is not visible in photoshop for example, but is in the browser. This becomes a real issue for those with mixed file types. Your only option in that case is to convert all your files to .png! This issue is a real hinderance, as gifs are not able properly render more intricate gradual transparencies.  Fingers crossed for a fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-600</link>
		<dc:creator>david</dc:creator>
		<pubDate>Mon, 13 Apr 2009 22:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-600</guid>
		<description>&lt;!--[if gte IE 5.5000]&gt;--&gt;

 



// Correctly handle PNG transparency in Win IE 5.5 or higher.
// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004

function correctPNG()
{
for(var i=0; i&lt;document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == &quot;PNG&quot;)
{
var imgID = (img.id) ? &quot;id=&#039;&quot; + img.id + &quot;&#039; &quot; : &quot;&quot;
var imgClass = (img.className) ? &quot;class=&#039;&quot; + img.className + &quot;&#039; &quot; : &quot;&quot;
var imgTitle = (img.title) ? &quot;title=&#039;&quot; + img.title + &quot;&#039; &quot; : &quot;title=&#039;&quot; + img.alt + &quot;&#039; &quot;
var imgStyle = &quot;display:inline-block;&quot; + img.style.cssText
if (img.align == &quot;left&quot;) imgStyle = &quot;float:left;&quot; + imgStyle
if (img.align == &quot;right&quot;) imgStyle = &quot;float:right;&quot; + imgStyle
if (img.parentElement.href) imgStyle = &quot;cursor:hand;&quot; + imgStyle
var strNewHTML = &quot;&quot;
img.outerHTML = strNewHTML
i = i-1
}
}
}
window.attachEvent(&quot;onload&quot;, correctPNG); 


save js file -&gt; pngfix.js</description>
		<content:encoded><![CDATA[<p><!--[if gte IE 5.5000]&gt;--></p>
<p>// Correctly handle PNG transparency in Win IE 5.5 or higher.<br />
// <a href="http://homepage.ntlworld.com/bobosola" rel="nofollow">http://homepage.ntlworld.com/bobosola</a>. Updated 02-March-2004</p>
<p>function correctPNG()<br />
{<br />
for(var i=0; i&lt;document.images.length; i++)<br />
{<br />
var img = document.images[i]<br />
var imgName = img.src.toUpperCase()<br />
if (imgName.substring(imgName.length-3, imgName.length) == &#8220;PNG&#8221;)<br />
{<br />
var imgID = (img.id) ? &#8220;id=&#8217;&#8221; + img.id + &#8220;&#8216; &#8221; : &#8220;&#8221;<br />
var imgClass = (img.className) ? &#8220;class=&#8217;&#8221; + img.className + &#8220;&#8216; &#8221; : &#8220;&#8221;<br />
var imgTitle = (img.title) ? &#8220;title=&#8217;&#8221; + img.title + &#8220;&#8216; &#8221; : &#8220;title=&#8217;&#8221; + img.alt + &#8220;&#8216; &#8221;<br />
var imgStyle = &#8220;display:inline-block;&#8221; + img.style.cssText<br />
if (img.align == &#8220;left&#8221;) imgStyle = &#8220;float:left;&#8221; + imgStyle<br />
if (img.align == &#8220;right&#8221;) imgStyle = &#8220;float:right;&#8221; + imgStyle<br />
if (img.parentElement.href) imgStyle = &#8220;cursor:hand;&#8221; + imgStyle<br />
var strNewHTML = &#8220;&#8221;<br />
img.outerHTML = strNewHTML<br />
i = i-1<br />
}<br />
}<br />
}<br />
window.attachEvent(&#8220;onload&#8221;, correctPNG); </p>
<p>save js file -&gt; pngfix.js</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tips &#38; tools to improve your conceptual web design &#187; Assault Blog</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-364</link>
		<dc:creator>Tips &#38; tools to improve your conceptual web design &#187; Assault Blog</dc:creator>
		<pubDate>Tue, 27 Jan 2009 14:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-364</guid>
		<description>[...] can use transparent GIFs, but as we covered in our web graphic transparency article you&#8217;ll find that they&#8217;re not nearly as flexible, and they don&#8217;t support gradual [...]</description>
		<content:encoded><![CDATA[<p>[...] can use transparent GIFs, but as we covered in our web graphic transparency article you&#8217;ll find that they&#8217;re not nearly as flexible, and they don&#8217;t support gradual [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miko</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-153</link>
		<dc:creator>Miko</dc:creator>
		<pubDate>Wed, 02 Jul 2008 14:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-153</guid>
		<description>I find the quality of a PNG file far more better then GIF.
But it is sometimes a real pain in the ... to make it compatible with IE6 or some other IE6 look alike browsers :(</description>
		<content:encoded><![CDATA[<p>I find the quality of a PNG file far more better then GIF.<br />
But it is sometimes a real pain in the &#8230; to make it compatible with IE6 or some other IE6 look alike browsers <img src='http://www.assault.it/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avangelist</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-152</link>
		<dc:creator>Avangelist</dc:creator>
		<pubDate>Wed, 02 Jul 2008 14:06:14 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-152</guid>
		<description>I cannot actually read your tutorials, ironic that you did another (possibly good?) tut on tiling backgrounds and failed to consider what you are putting on top of it.

Sort it out guy so I can enjoy your stuff.

AP</description>
		<content:encoded><![CDATA[<p>I cannot actually read your tutorials, ironic that you did another (possibly good?) tut on tiling backgrounds and failed to consider what you are putting on top of it.</p>
<p>Sort it out guy so I can enjoy your stuff.</p>
<p>AP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Invisible</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-128</link>
		<dc:creator>Invisible</dc:creator>
		<pubDate>Wed, 18 Jun 2008 06:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-128</guid>
		<description>@Barney, looks like the code snippet never made it through but you got me on the right track thanks!</description>
		<content:encoded><![CDATA[<p>@Barney, looks like the code snippet never made it through but you got me on the right track thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clark</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-126</link>
		<dc:creator>clark</dc:creator>
		<pubDate>Tue, 17 Jun 2008 18:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-126</guid>
		<description>8bit pngs do not require any hacks in IE 6

they only support one transparent color, not alpha transparency like the 24bit

8bit pngs beat the pants off of gifs every single time</description>
		<content:encoded><![CDATA[<p>8bit pngs do not require any hacks in IE 6</p>
<p>they only support one transparent color, not alpha transparency like the 24bit</p>
<p>8bit pngs beat the pants off of gifs every single time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-125</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 17 Jun 2008 18:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-125</guid>
		<description>The Gif has 16 colors.

what would be the size of it was 65k? 

also, the size difference vs the quality of the gif is well worth it, as the gif looks like garbage if you spend over 2 seconds looking at it.</description>
		<content:encoded><![CDATA[<p>The Gif has 16 colors.</p>
<p>what would be the size of it was 65k? </p>
<p>also, the size difference vs the quality of the gif is well worth it, as the gif looks like garbage if you spend over 2 seconds looking at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ralph</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-124</link>
		<dc:creator>ralph</dc:creator>
		<pubDate>Tue, 17 Jun 2008 17:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-124</guid>
		<description>you can get an idea how your png will look in any browser at this site:
browsershots.org

nice tut btw.</description>
		<content:encoded><![CDATA[<p>you can get an idea how your png will look in any browser at this site:<br />
browsershots.org</p>
<p>nice tut btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-123</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Tue, 17 Jun 2008 16:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-123</guid>
		<description>You can create a separate stylesheet for IE and use &lt;!-- [if lte IE6]  --&gt; and it will validate.</description>
		<content:encoded><![CDATA[<p>You can create a separate stylesheet for IE and use &lt;!&#8211; [if lte IE6]  &#8211;&gt; and it will validate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-122</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Tue, 17 Jun 2008 16:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-122</guid>
		<description>Nice overview Tim,

Good you mention that 8-bit PNGs are better compressed than GIF. Overall your decision that it&#039;s overall more economical to stick to GIF is slightly coloured (haha) by the fact that your site graphics are entirely monochrome, and the transitions don&#039;t work so roughly. When you have one colour above an indeterminate other, transparent GIFs edges will look nasty.

@Invisible,

You want to save your alpha favicon as a simple 24-bit PNG, and then use conditional comments to render it only on non-IE browsers*. Conditional comments are perfectly valid HTML, it&#039;s just that their functionality isn&#039;t recognised by W3C or standard browsers — but that&#039;s not a practical or philosophical problem at all unless you&#039;re actually emotionally in love with W3C as a human being. 

However if that&#039;s the case, you can always use server-side code to sniff for the browser, and then serve code respectively.

For everything ancient else, you&#039;ll just have your standardised .ico GIF-formatted favicon.


* The everything-except IE conditional comments work as follows:

&lt;!--[if !IE]&gt;&lt;!--&gt;
  Content here
&lt;!--</description>
		<content:encoded><![CDATA[<p>Nice overview Tim,</p>
<p>Good you mention that 8-bit PNGs are better compressed than GIF. Overall your decision that it&#8217;s overall more economical to stick to GIF is slightly coloured (haha) by the fact that your site graphics are entirely monochrome, and the transitions don&#8217;t work so roughly. When you have one colour above an indeterminate other, transparent GIFs edges will look nasty.</p>
<p>@Invisible,</p>
<p>You want to save your alpha favicon as a simple 24-bit PNG, and then use conditional comments to render it only on non-IE browsers*. Conditional comments are perfectly valid HTML, it&#8217;s just that their functionality isn&#8217;t recognised by W3C or standard browsers — but that&#8217;s not a practical or philosophical problem at all unless you&#8217;re actually emotionally in love with W3C as a human being. </p>
<p>However if that&#8217;s the case, you can always use server-side code to sniff for the browser, and then serve code respectively.</p>
<p>For everything ancient else, you&#8217;ll just have your standardised .ico GIF-formatted favicon.</p>
<p>* The everything-except IE conditional comments work as follows:</p>
<p><!--[if !IE]&gt;&lt;!--><br />
  Content here<br />
&lt;!&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Invisible</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-121</link>
		<dc:creator>Invisible</dc:creator>
		<pubDate>Tue, 17 Jun 2008 16:05:47 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-121</guid>
		<description>Like the css hack, thanks. Kind of off-topic but does anyone have any good pointers or links to demos for creating favicons with true transparency? Seems like folks have it figured out from favicons I&#039;ve seen but with all the apps and tutorials I&#039;ve tried I end up with non anti-aliased transparency when I save the ico file. Help!</description>
		<content:encoded><![CDATA[<p>Like the css hack, thanks. Kind of off-topic but does anyone have any good pointers or links to demos for creating favicons with true transparency? Seems like folks have it figured out from favicons I&#8217;ve seen but with all the apps and tutorials I&#8217;ve tried I end up with non anti-aliased transparency when I save the ico file. Help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dylan</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-120</link>
		<dc:creator>Dylan</dc:creator>
		<pubDate>Tue, 17 Jun 2008 14:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-120</guid>
		<description>PNG has an 8-bit format as well that you fail to mention.  It is that format that is best suited to go up against GIF files. (24-bit PNG files are more suited towards photos, and generally compete with JPG). I have many cases where a PNG file was smaller than the equivalent GIF file</description>
		<content:encoded><![CDATA[<p>PNG has an 8-bit format as well that you fail to mention.  It is that format that is best suited to go up against GIF files. (24-bit PNG files are more suited towards photos, and generally compete with JPG). I have many cases where a PNG file was smaller than the equivalent GIF file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GIF vs JPG - Which is Better? &#124; Assault Apparel T-Shirt Blog</title>
		<link>http://www.assault.it/2008/06/16/web-graphic-transparency-tutorial-gif-png/comment-page-1/#comment-119</link>
		<dc:creator>GIF vs JPG - Which is Better? &#124; Assault Apparel T-Shirt Blog</dc:creator>
		<pubDate>Mon, 16 Jun 2008 22:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://assaultblog.com/?p=193#comment-119</guid>
		<description>[...] 6 with the exception of using a quite handy (yet at times tricky) png transparency workaround. My next tutorial will be on transparency, and when it&#8217;s better to use PNG vs GIFs for transparency. For now let&#8217;s just say that [...]</description>
		<content:encoded><![CDATA[<p>[...] 6 with the exception of using a quite handy (yet at times tricky) png transparency workaround. My next tutorial will be on transparency, and when it&#8217;s better to use PNG vs GIFs for transparency. For now let&#8217;s just say that [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

