<?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: Extract JPG EXIF metadata in Actionscript 3</title>
	<atom:link href="http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/</link>
	<description>for all the fans out there</description>
	<lastBuildDate>Sat, 26 Dec 2009 17:47:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Kevin Traas</title>
		<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/comment-page-1/#comment-333</link>
		<dc:creator>Kevin Traas</dc:creator>
		<pubDate>Sun, 22 Nov 2009 23:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://patrickshyu.com/?p=157#comment-333</guid>
		<description>As Graham mentioned above, I also had to comment out 
the line: 

if(fd==0) jumps = new Array();

Further, I&#039;ve discovered this Class has problems reading the newer EXIF version 0221 format.  I was specifically looking to retrieve the Dimensions of the image.  With 0221 images, the values being retrieved were impossibly large.  A work-around, though....

I was able to calculate the image dimensions of 0221 images using the following code snippet:

var exif:ExifReader = new ExifReader();

exif.addEventListener( Event.COMPLETE, function ( e:Event ):void
{
   var dim:String = &quot;&lt;i&gt;Unknown&lt;/i&gt;&quot;
   if( exif.hasKey( &quot;ExifImageWidth&quot; ) )
   {
      var x:uint = uint( exif.getValue( &quot;ExifImageWidth&quot; ) );
      var y:uint = uint( exif.getValue( &quot;ExifImageHeight&quot; ) );
      if( x &gt; 1000000 )   // Newer Exif version returns impossibly huge x/y values - which are still useful....
      {
         var ru:uint = uint( exif.getValue( &quot;ResolutionUnit&quot; ) );
         x = x/ru*2;
         y = y/ru*2;
         dim = x.toString() + &quot; x &quot; + y.toString();
      }
      else
         dim = x.toString() + &quot; x &quot; + y.toString();
   }
   else if( exif.hasKey( &quot;XResolution&quot; ) )
      dim = exif.getValue( &quot;XResolution&quot; ).toString() + &quot; x &quot; + exif.getValue( &quot;YResolution&quot; ).toString();
}, false, 0, true );

exif.load(new URLRequest( filename ), true);


It&#039;s a &quot;hack&quot;, not a fix, but... suited my immediate needs.  In case someone finds it useful....  ;-)</description>
		<content:encoded><![CDATA[<p>As Graham mentioned above, I also had to comment out<br />
the line: </p>
<p>if(fd==0) jumps = new Array();</p>
<p>Further, I&#8217;ve discovered this Class has problems reading the newer EXIF version 0221 format.  I was specifically looking to retrieve the Dimensions of the image.  With 0221 images, the values being retrieved were impossibly large.  A work-around, though&#8230;.</p>
<p>I was able to calculate the image dimensions of 0221 images using the following code snippet:</p>
<p>var exif:ExifReader = new ExifReader();</p>
<p>exif.addEventListener( Event.COMPLETE, function ( e:Event ):void<br />
{<br />
   var dim:String = &#8220;<i>Unknown</i>&#8221;<br />
   if( exif.hasKey( &#8220;ExifImageWidth&#8221; ) )<br />
   {<br />
      var x:uint = uint( exif.getValue( &#8220;ExifImageWidth&#8221; ) );<br />
      var y:uint = uint( exif.getValue( &#8220;ExifImageHeight&#8221; ) );<br />
      if( x &gt; 1000000 )   // Newer Exif version returns impossibly huge x/y values &#8211; which are still useful&#8230;.<br />
      {<br />
         var ru:uint = uint( exif.getValue( &#8220;ResolutionUnit&#8221; ) );<br />
         x = x/ru*2;<br />
         y = y/ru*2;<br />
         dim = x.toString() + &#8221; x &#8221; + y.toString();<br />
      }<br />
      else<br />
         dim = x.toString() + &#8221; x &#8221; + y.toString();<br />
   }<br />
   else if( exif.hasKey( &#8220;XResolution&#8221; ) )<br />
      dim = exif.getValue( &#8220;XResolution&#8221; ).toString() + &#8221; x &#8221; + exif.getValue( &#8220;YResolution&#8221; ).toString();<br />
}, false, 0, true );</p>
<p>exif.load(new URLRequest( filename ), true);</p>
<p>It&#8217;s a &#8220;hack&#8221;, not a fix, but&#8230; suited my immediate needs.  In case someone finds it useful&#8230;.  <img src='http://patrickshyu.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Bradley</title>
		<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/comment-page-1/#comment-189</link>
		<dc:creator>Graham Bradley</dc:creator>
		<pubDate>Thu, 01 Oct 2009 08:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://patrickshyu.com/?p=157#comment-189</guid>
		<description>Hi, I&#039;ve had trouble reading some fields using your class. For an image using Exif2.2 I had to remove the following line from the readIFD() method:

if(ifd==0) jumps = new Array();

After that, worked a charm. Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve had trouble reading some fields using your class. For an image using Exif2.2 I had to remove the following line from the readIFD() method:</p>
<p>if(ifd==0) jumps = new Array();</p>
<p>After that, worked a charm. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/comment-page-1/#comment-76</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Tue, 01 Sep 2009 22:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://patrickshyu.com/?p=157#comment-76</guid>
		<description>Ok.. Nevermind... I figured it out... ;O)

But now I have some other questions.. I have a jpeg that Windows properties, and Photoshop Info.. says is 300dpi... but when I use the XResolution I get 72... Is it picking up the Thumbnail resolution?  This is the primary info that I wanted to get (the dpi)....

Thanks Again

Bob</description>
		<content:encoded><![CDATA[<p>Ok.. Nevermind&#8230; I figured it out&#8230; ;O)</p>
<p>But now I have some other questions.. I have a jpeg that Windows properties, and Photoshop Info.. says is 300dpi&#8230; but when I use the XResolution I get 72&#8230; Is it picking up the Thumbnail resolution?  This is the primary info that I wanted to get (the dpi)&#8230;.</p>
<p>Thanks Again</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/comment-page-1/#comment-75</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Tue, 01 Sep 2009 19:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://patrickshyu.com/?p=157#comment-75</guid>
		<description>Hey...

Just started FLEX and Exif data is one of the things that I wanted for my learning project..

I know that this is newbie question, but how do I import this into a new project. I tried a couple of things but I am still getting errors. I know that is vague, but if you could show me a project that uses your sample usage that would help me on my way ;O)

Thanks

Bob</description>
		<content:encoded><![CDATA[<p>Hey&#8230;</p>
<p>Just started FLEX and Exif data is one of the things that I wanted for my learning project..</p>
<p>I know that this is newbie question, but how do I import this into a new project. I tried a couple of things but I am still getting errors. I know that is vague, but if you could show me a project that uses your sample usage that would help me on my way ;O)</p>
<p>Thanks</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EK</title>
		<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/comment-page-1/#comment-63</link>
		<dc:creator>EK</dc:creator>
		<pubDate>Wed, 15 Jul 2009 00:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://patrickshyu.com/?p=157#comment-63</guid>
		<description>First of all I&#039;m not developer, so I have very limited knowledge of files&#039; structure, but very interested in finding a way to pull XMP info from JPEG files using AS3. What your ideas would be on this matter?

Thank you
EK</description>
		<content:encoded><![CDATA[<p>First of all I&#8217;m not developer, so I have very limited knowledge of files&#8217; structure, but very interested in finding a way to pull XMP info from JPEG files using AS3. What your ideas would be on this matter?</p>
<p>Thank you<br />
EK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/comment-page-1/#comment-43</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 17 Jun 2009 08:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://patrickshyu.com/?p=157#comment-43</guid>
		<description>This library should pull in all of that information now.</description>
		<content:encoded><![CDATA[<p>This library should pull in all of that information now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://patrickshyu.com/2009/04/jpg-exif-metadata-in-actionscript-3/comment-page-1/#comment-38</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Tue, 09 Jun 2009 21:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://patrickshyu.com/?p=157#comment-38</guid>
		<description>Nice work on this class.  Seems to pull the info in pretty quickly.  I’m working on a project where I need to find out the image orientation from the exif metadata and then rotate the image to its correct position accordingly. Any ideas on how one might extend your class to include that functionality?</description>
		<content:encoded><![CDATA[<p>Nice work on this class.  Seems to pull the info in pretty quickly.  I’m working on a project where I need to find out the image orientation from the exif metadata and then rotate the image to its correct position accordingly. Any ideas on how one might extend your class to include that functionality?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
