<?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: Using Perl and ExifTool to Access EXIF Data in Digital Images</title>
	<atom:link href="http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/</link>
	<description>An experiment in writing of life as I live it</description>
	<lastBuildDate>Wed, 04 Jan 2012 01:51:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mike</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-5984</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 16 Jun 2011 20:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-5984</guid>
		<description>Phil,

This is cool stuff, I have gotten more free information from you than what I have paid for. - Where do I send the check? :-)

There are times where I need to rename large batches of images by elapsed time; is there a simple way to calculate the elapsed time, write that time to EXIF and rename the files accordingly. For example, a 5000 meter race starts at 7:00 AM, the person&#039;s picture is taken at 7:22:13 AM crossing the finish line; I would like to rename the file to be 22:13, which would correspond to the person&#039;s finishing time. – Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Phil,</p>
<p>This is cool stuff, I have gotten more free information from you than what I have paid for. &#8211; Where do I send the check? <img src='http://blog.spencerkellis.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>There are times where I need to rename large batches of images by elapsed time; is there a simple way to calculate the elapsed time, write that time to EXIF and rename the files accordingly. For example, a 5000 meter race starts at 7:00 AM, the person&#8217;s picture is taken at 7:22:13 AM crossing the finish line; I would like to rename the file to be 22:13, which would correspond to the person&#8217;s finishing time. – Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-3737</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Mon, 24 Jan 2011 17:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-3737</guid>
		<description>Hi, I just implemented. After a bit of testing I dropped the second arg to WriteInfo because I supply filenames after writing the file, and it works so I&#039;m not keeping backups of backups!

[code]
  my $exifTool = new Image::ExifTool;
  my $set_val = $exifTool-&gt;SetNewValuesFromFile($source_file);
  if( exists $set_val-&gt;{&#039;Error&#039;} )
  {
      die &quot;Error in SetNewValuesFromFile from $source_file: &quot;. $set_val-&gt;{&#039;Error&#039;};
  }
  print &quot;Writing Exif data to $target_file\n&quot;;
  $exifTool-&gt;WriteInfo($target_file)
      or die &quot;Error writing $target_file: &quot;.$exifTool-&gt;GetValue(&#039;Error&#039;).&quot;\n&quot;;

[/code]</description>
		<content:encoded><![CDATA[<p>Hi, I just implemented. After a bit of testing I dropped the second arg to WriteInfo because I supply filenames after writing the file, and it works so I&#8217;m not keeping backups of backups!</p>
<p>[code]<br />
  my $exifTool = new Image::ExifTool;<br />
  my $set_val = $exifTool-&gt;SetNewValuesFromFile($source_file);<br />
  if( exists $set_val-&gt;{'Error'} )<br />
  {<br />
      die "Error in SetNewValuesFromFile from $source_file: ". $set_val-&gt;{'Error'};<br />
  }<br />
  print "Writing Exif data to $target_file\n";<br />
  $exifTool-&gt;WriteInfo($target_file)<br />
      or die "Error writing $target_file: ".$exifTool-&gt;GetValue('Error')."\n";</p>
<p>[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-3718</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Sun, 23 Jan 2011 23:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-3718</guid>
		<description>Thanks for this. I also resize my images using perl, and lose the exif data in the process. So the 2-liner to copy the exif data is just the ticket. I take it that imagewidth and imageheight aren&#039;t copied to the resized image file !?
Cheers, al.</description>
		<content:encoded><![CDATA[<p>Thanks for this. I also resize my images using perl, and lose the exif data in the process. So the 2-liner to copy the exif data is just the ticket. I take it that imagewidth and imageheight aren&#8217;t copied to the resized image file !?<br />
Cheers, al.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: warper</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-3373</link>
		<dc:creator>warper</dc:creator>
		<pubDate>Tue, 28 Dec 2010 16:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-3373</guid>
		<description>Hi Spencer,
thanks for this post, it has been really useful to develop my own workflows for photography, I&#039;ll share my results.

In the end I just copy some of the field from the RAW file that are useful for flickr and f-spot</description>
		<content:encoded><![CDATA[<p>Hi Spencer,<br />
thanks for this post, it has been really useful to develop my own workflows for photography, I&#8217;ll share my results.</p>
<p>In the end I just copy some of the field from the RAW file that are useful for flickr and f-spot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean P</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-2010</link>
		<dc:creator>Jean P</dc:creator>
		<pubDate>Sat, 21 Aug 2010 11:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-2010</guid>
		<description>Very good example. Thanks
Please note that the terminating n&quot; in each print statements of the &quot;Simple example&quot; script should be preceded by a backslash (for newline)</description>
		<content:encoded><![CDATA[<p>Very good example. Thanks<br />
Please note that the terminating n&#8221; in each print statements of the &#8220;Simple example&#8221; script should be preceded by a backslash (for newline)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marshalleq</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-1661</link>
		<dc:creator>Marshalleq</dc:creator>
		<pubDate>Sat, 08 May 2010 06:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-1661</guid>
		<description>This is really cool! :)  Any idea how to extract all the info from a RAW file and put it into an existing jpg file.  I&#039;m currently using the simple &quot;exiftool -tagsFromFile _MG_1434.CR2 _MG_1434.jpg&quot; for testing, but it doesn&#039;t seem to include all the data.  The next (more important step is applying that so that it adds to any existing file with the same name (but ending in jpg) and then running your script above to organise by date.

Yeah, I know, but UFRAW won&#039;t export EXIF to anything but 8 bit, and I gotta save that first THEN edit in gimp which is a little too lossy for my liking. :)</description>
		<content:encoded><![CDATA[<p>This is really cool! <img src='http://blog.spencerkellis.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Any idea how to extract all the info from a RAW file and put it into an existing jpg file.  I&#8217;m currently using the simple &#8220;exiftool -tagsFromFile _MG_1434.CR2 _MG_1434.jpg&#8221; for testing, but it doesn&#8217;t seem to include all the data.  The next (more important step is applying that so that it adds to any existing file with the same name (but ending in jpg) and then running your script above to organise by date.</p>
<p>Yeah, I know, but UFRAW won&#8217;t export EXIF to anything but 8 bit, and I gotta save that first THEN edit in gimp which is a little too lossy for my liking. <img src='http://blog.spencerkellis.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Pullen</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-1056</link>
		<dc:creator>Roland Pullen</dc:creator>
		<pubDate>Wed, 16 Dec 2009 13:21:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-1056</guid>
		<description>Your article is very much appreciated.  Just what I have been looking for.  Thanks</description>
		<content:encoded><![CDATA[<p>Your article is very much appreciated.  Just what I have been looking for.  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spencer</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-242</link>
		<dc:creator>Spencer</dc:creator>
		<pubDate>Thu, 03 Sep 2009 17:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-242</guid>
		<description>Hi Phil,

Thanks so much for your comment!  I edited the article to include your (much better) command-line alternative.</description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>Thanks so much for your comment!  I edited the article to include your (much better) command-line alternative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Harvey</title>
		<link>http://blog.spencerkellis.net/2009/09/using-perl-and-exiftool-to-access-exif-data-in-digital-images/comment-page-1/#comment-238</link>
		<dc:creator>Phil Harvey</dc:creator>
		<pubDate>Thu, 03 Sep 2009 12:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spencerkellis.net/?p=357#comment-238</guid>
		<description>Good article, thanks.  Just one quick tip...

Your command-line alternative for renaming images can be reduced to this single command:

exiftool -d %Y%m%d-%H%M%S-%%.2c.%%e &quot;-FileName&lt;DateTimeOriginal&quot; FILE</description>
		<content:encoded><![CDATA[<p>Good article, thanks.  Just one quick tip&#8230;</p>
<p>Your command-line alternative for renaming images can be reduced to this single command:</p>
<p>exiftool -d %Y%m%d-%H%M%S-%%.2c.%%e &#8220;-FileName&lt;DateTimeOriginal&quot; FILE</p>
]]></content:encoded>
	</item>
</channel>
</rss>

