<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DebonStudio &#187; GIF</title>
	<atom:link href="http://www.debonstudio.com/blog/tag/gif/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debonstudio.com/blog</link>
	<description>Olivier Debon</description>
	<lastBuildDate>Tue, 29 Jun 2010 21:04:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Time to Ditch the GIF Format?</title>
		<link>http://www.debonstudio.com/blog/time-to-ditch-the-gif-format/</link>
		<comments>http://www.debonstudio.com/blog/time-to-ditch-the-gif-format/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 21:06:41 +0000</pubDate>
		<dc:creator>Olivier</dc:creator>
				<category><![CDATA[web design]]></category>
		<category><![CDATA[GIF]]></category>
		<category><![CDATA[PNG]]></category>

		<guid isPermaLink="false">http://www.debonstudio.com/test/blog/?p=54</guid>
		<description><![CDATA[Compared to the JPEG (Joint Photographic Experts Group) or PNG (Portable Network Graphics) formats, GIF (Graphics Interchange Format) is clearly behind technically, but web developers still use GIFs, mostly because virtually all browsers support it, making it a safe choice, and also because of its small file size. Then, why ditch the GIF format? After [...]]]></description>
			<content:encoded><![CDATA[<p>Compared to the <strong>JPEG</strong> (<em>Joint Photographic Experts Group)</em> or <strong>PNG</strong> <em>(Portable Network Graphics)</em> formats, <strong>GIF</strong> <em>(Graphics Interchange Format)</em> is clearly behind technically, but web developers still use GIFs, mostly because virtually all browsers support it, making it a safe choice, and also because of its small file size.</p>
<p>Then, why ditch the GIF format? After all, it does what we need it to do, right? Well, simply put, it&#8217;s because PNG and JPEG are better, much better. It&#8217;s like using an old typewriter instead of a computer to put your thoughts on a piece of paper, it still does the job, but it doesn&#8217;t look as good.</p>
<p>So unless you want to create an animated image (which is possible only using GIF), you should use JPEG to create photographic images and PNG for all your other graphic needs.</p>
<p><strong>Comparing GIF, JPEG and PNG formats</strong></p>
<p>Some will argue that I make a big deal out of nothing and that using GIFs is perfectly fine. Actually, I still use GIFs sparingly here and there myself, when I need a basic solid color image for example. But I always compare with a PNG version first to check which is smaller, and when GIF wins, it&#8217;s always by a tiny margin.</p>
<p><span id="more-54"></span>Below are 3 examples of the same images using GIF, JPEG and PNG respectively. As you can see, they all look similar if not for the file size, but although the JPEG is the smallest, the quality is significantly poorer when you examine it closely.</p>
<div id="attachment_96" class="wp-caption alignleft" style="width: 190px"><img class="size-full wp-image-96" title="JPEG - 8 KB" src="http://www.debonstudio.com/blog/wp-content/uploads/2009/03/sample_jpeg.jpg" alt="JPEG - 8 KB" width="180" height="100" /><p class="wp-caption-text">JPEG - 6 KB</p></div>
<div id="attachment_95" class="wp-caption alignleft" style="width: 190px"><img class="size-full wp-image-95" title="GIF Sample" src="http://www.debonstudio.com/blog/wp-content/uploads/2009/03/sample_gif.gif" alt="GIF - 14 KB" width="180" height="100" /><p class="wp-caption-text">GIF - 14 KB</p></div>
<div id="attachment_97" class="wp-caption alignleft" style="width: 190px"><img class="size-full wp-image-97" title="PNG - 11 KB" src="http://www.debonstudio.com/blog/wp-content/uploads/2009/03/sample_png.png" alt="PNG - 11KB" width="180" height="100" /><p class="wp-caption-text">PNG - 11KB</p></div>
<p><strong>Advantages and Drawbacks of the PNG Format</strong></p>
<p>First of all, unless you want to make sure that your images are viewable by people who have not updated their browsers since 1997, you are safe to assume that all your website visitors will see them just fine. Then, since the file size of a PNG is almost always smaller than a GIF, you will have a page that loads faster. Not to mention the quality you can achieve with PNGs, since it&#8217;s a bitmapped image format that employs lossless data compression. Actually, the quality is even better than JPEG, especially if you use gradients. JPEG advantage is in its lossy compression that result in smaller photographic files, but at the cost of a loss in quality.</p>
<p><strong>The PNG transparency drawback in IE6</strong></p>
<p>That said, there are some drawbacks when it comes to PNG transparency in Internet Explorer, but the culprit is Microsoft, being the latest of the main browsers (as of IE7) to finally understand Alpha Transparency. For Internet Explorer 6, there are some turn-arounds to make it behave nicely and display PNG transparency properly using the MS proprietary alpha image loader filter. Ingo Chao wrote an excellent  article describing ways to <a href="http://www.satzansatz.de/cssd/tmp/alphatransparency.html" target="_blank">fix various IE6 bugs related to PNG transparency</a>.</p>
<p>So don&#8217;t take my word for it, next time you create a design layout for a website, create both GIF and PNG versions of your graphical elements and compare their overall quality and size. I bet that in 99% of the cases, you&#8217;ll ditch the GIF!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debonstudio.com/blog/time-to-ditch-the-gif-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

