<?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/"
		>
<channel>
	<title>Comments on: Detect if the browser supports APNG</title>
	<atom:link href="http://ajaxian.com/archives/detect-if-the-browser-supports-apng/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: PacoBell</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-272171</link>
		<dc:creator>PacoBell</dc:creator>
		<pubDate>Thu, 19 Mar 2009 06:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-272171</guid>
		<description>Huh, that seems kind of a roundabout way of detecting APNG support. A more surefire way seems to be this: http://foone.org/apng/</description>
		<content:encoded><![CDATA[<p>Huh, that seems kind of a roundabout way of detecting APNG support. A more surefire way seems to be this: <a href="http://foone.org/apng/" rel="nofollow">http://foone.org/apng/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cromwellian</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271828</link>
		<dc:creator>cromwellian</dc:creator>
		<pubDate>Thu, 05 Mar 2009 23:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271828</guid>
		<description>I don&#039;t see how banning dataURI imports into Canvas changes the security dynamics, since I can parse a dataURI in Javascript, compute the pixel data, and rasterize it into the Canvas using normal draw operations (e.g. fillRect)

For example, if I was doing an XSS attack against you, by retrieving a GIF from a domain you were logged into which contains you bank account credentials embedded in the image, then it makes sense to mark the canvas dirty with cross domain images. However, if I were to instead, somehow retrieve a dataURI from the XSS site, there is nothing you could do to stop me. I wouldn&#039;t even need to use the Canvas, the mere position of the dataURI is enough. I could then post it to any URL I own and decode it locally on my desktop.

The banning of dataURIs seems like security through obscurity.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see how banning dataURI imports into Canvas changes the security dynamics, since I can parse a dataURI in Javascript, compute the pixel data, and rasterize it into the Canvas using normal draw operations (e.g. fillRect)</p>
<p>For example, if I was doing an XSS attack against you, by retrieving a GIF from a domain you were logged into which contains you bank account credentials embedded in the image, then it makes sense to mark the canvas dirty with cross domain images. However, if I were to instead, somehow retrieve a dataURI from the XSS site, there is nothing you could do to stop me. I wouldn&#8217;t even need to use the Canvas, the mere position of the dataURI is enough. I could then post it to any URL I own and decode it locally on my desktop.</p>
<p>The banning of dataURIs seems like security through obscurity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrMoo</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271810</link>
		<dc:creator>MrMoo</dc:creator>
		<pubDate>Thu, 05 Mar 2009 16:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271810</guid>
		<description>Aah. I interpreted that as Alpha PNGs - as in 32-bit PNGs. I didn&#039;t even think of Animated PNGs. My bad, and you have my apologies. I still think that tossing an error in IE is bad.</description>
		<content:encoded><![CDATA[<p>Aah. I interpreted that as Alpha PNGs &#8211; as in 32-bit PNGs. I didn&#8217;t even think of Animated PNGs. My bad, and you have my apologies. I still think that tossing an error in IE is bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EliGrey</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271793</link>
		<dc:creator>EliGrey</dc:creator>
		<pubDate>Thu, 05 Mar 2009 11:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271793</guid>
		<description>@MrMoo APNG is &lt;strong&gt;animated&lt;/strong&gt; PNG. IE does &lt;strong&gt;not&lt;/strong&gt; support anything of the sort.
As of yet, there are no browsers that support APNG and not canvas so no worries.</description>
		<content:encoded><![CDATA[<p>@MrMoo APNG is <strong>animated</strong> PNG. IE does <strong>not</strong> support anything of the sort.<br />
As of yet, there are no browsers that support APNG and not canvas so no worries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrMoo</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271787</link>
		<dc:creator>MrMoo</dc:creator>
		<pubDate>Thu, 05 Mar 2009 09:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271787</guid>
		<description>And by transparency I mean opacity. And by opacity, in IE, I mean the Alpha filter. Which inevitably ends with using the AlphaImageLoader filter, so perhaps &quot;supports&quot; is too strong a word.</description>
		<content:encoded><![CDATA[<p>And by transparency I mean opacity. And by opacity, in IE, I mean the Alpha filter. Which inevitably ends with using the AlphaImageLoader filter, so perhaps &#8220;supports&#8221; is too strong a word.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrMoo</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271782</link>
		<dc:creator>MrMoo</dc:creator>
		<pubDate>Thu, 05 Mar 2009 05:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271782</guid>
		<description>My point was that in browsers that don&#039;t support canvas (IE) the code will throw an error. IE7 &quot;supports&quot; 32-bit PNGs but not canvas (I say &quot;supports&quot; because as soon as you apply any kind of transparency on them things get nasty).</description>
		<content:encoded><![CDATA[<p>My point was that in browsers that don&#8217;t support canvas (IE) the code will throw an error. IE7 &#8220;supports&#8221; 32-bit PNGs but not canvas (I say &#8220;supports&#8221; because as soon as you apply any kind of transparency on them things get nasty).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlenLipka</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271780</link>
		<dc:creator>GlenLipka</dc:creator>
		<pubDate>Thu, 05 Mar 2009 01:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271780</guid>
		<description>Sorry, my bad.  Was reading a bit too quickly.</description>
		<content:encoded><![CDATA[<p>Sorry, my bad.  Was reading a bit too quickly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EliGrey</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271779</link>
		<dc:creator>EliGrey</dc:creator>
		<pubDate>Thu, 05 Mar 2009 01:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271779</guid>
		<description>@GlenLipka RTFA, this has nothing to do with IE6. Not even IE8 supports this.</description>
		<content:encoded><![CDATA[<p>@GlenLipka RTFA, this has nothing to do with IE6. Not even IE8 supports this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlenLipka</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271777</link>
		<dc:creator>GlenLipka</dc:creator>
		<pubDate>Thu, 05 Mar 2009 00:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271777</guid>
		<description>You dont need to do this at all.  Just create PNG-8 files that degrade well in IE6.
http://commadot.com/png-8-that-acts-like-png-24-without-fireworks/</description>
		<content:encoded><![CDATA[<p>You dont need to do this at all.  Just create PNG-8 files that degrade well in IE6.<br />
<a href="http://commadot.com/png-8-that-acts-like-png-24-without-fireworks/" rel="nofollow">http://commadot.com/png-8-that-acts-like-png-24-without-fireworks/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 0x336699</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271771</link>
		<dc:creator>0x336699</dc:creator>
		<pubDate>Wed, 04 Mar 2009 19:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271771</guid>
		<description>&lt;blockquote&gt;Is the assumption that a browser that doesn’t support canvas also doesn’t support APNG? Because that’s just wrong.&lt;/blockquote&gt;

No.  The code (and inline comments) suggest that you &lt;b&gt;use&lt;/b&gt; the canvas to detect whether or not the browser supports APNGs.  By testing the color of a particular pixel at a particular time, you can detect if the image moved to the second frame or not.</description>
		<content:encoded><![CDATA[<blockquote><p>Is the assumption that a browser that doesn’t support canvas also doesn’t support APNG? Because that’s just wrong.</p></blockquote>
<p>No.  The code (and inline comments) suggest that you <b>use</b> the canvas to detect whether or not the browser supports APNGs.  By testing the color of a particular pixel at a particular time, you can detect if the image moved to the second frame or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrMoo</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271764</link>
		<dc:creator>MrMoo</dc:creator>
		<pubDate>Wed, 04 Mar 2009 15:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271764</guid>
		<description>Is the assumption that a browser that doesn&#039;t support canvas also doesn&#039;t support APNG? Because that&#039;s just wrong.</description>
		<content:encoded><![CDATA[<p>Is the assumption that a browser that doesn&#8217;t support canvas also doesn&#8217;t support APNG? Because that&#8217;s just wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joeri</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271763</link>
		<dc:creator>Joeri</dc:creator>
		<pubDate>Wed, 04 Mar 2009 14:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271763</guid>
		<description>@p01: Do you have any link for that? Or perhaps a more elaborate explanation?</description>
		<content:encoded><![CDATA[<p>@p01: Do you have any link for that? Or perhaps a more elaborate explanation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: p01</title>
		<link>http://ajaxian.com/archives/detect-if-the-browser-supports-apng/comment-page-1#comment-271761</link>
		<dc:creator>p01</dc:creator>
		<pubDate>Wed, 04 Mar 2009 13:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6175#comment-271761</guid>
		<description>The security violation raised when trying to import a data URI image into a Canvas may be annoying but it is not a stupid restriction. It is a necessary security and privacy measure.</description>
		<content:encoded><![CDATA[<p>The security violation raised when trying to import a data URI image into a Canvas may be annoying but it is not a stupid restriction. It is a necessary security and privacy measure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

