<?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>Pario TechnoBlob &#187; exiftool</title>
	<atom:link href="http://pario.no/tag/exiftool/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Copy EXIF information from one file to another</title>
		<link>http://pario.no/2011/01/08/copy-exif-information-from-one-file-to-another/</link>
		<comments>http://pario.no/2011/01/08/copy-exif-information-from-one-file-to-another/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 21:01:47 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[exiftool]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1466</guid>
		<description><![CDATA[This is a short post about how to duplicate or copy the EXIF information from one file to another using exiftool. The command comes handy when you have one image with EXIF information and you would like another image to have the exact EXIF information. exiftool -TagsFromFile CopyFromFile.NEF ToFile.JPG This works in both Windows and [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short post about how to duplicate or copy the EXIF information from one file to another using exiftool.<br />
The command comes handy when you have one image with EXIF information and you would like another image to have the exact EXIF information. </p>
<pre>
exiftool -TagsFromFile CopyFromFile.NEF ToFile.JPG</pre>
<p>This works in both Windows and Linux.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTEvMDEvMDgvY29weS1leGlmLWluZm9ybWF0aW9uLWZyb20tb25lLWZpbGUtdG8tYW5vdGhlci88d3B0Yj5Db3B5IEVYSUYgaW5mb3JtYXRpb24gZnJvbSBvbmUgZmlsZSB0byBhbm90aGVyPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2011/01/08/copy-exif-information-from-one-file-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set photo filedate and time according to EXIF info</title>
		<link>http://pario.no/2007/12/05/set-photo-filedate-and-time-according-to-exif-info/</link>
		<comments>http://pario.no/2007/12/05/set-photo-filedate-and-time-according-to-exif-info/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 12:36:49 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[exiftool]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://pario.no/2007/12/05/set-photo-filedate-and-time-according-to-exif-info/</guid>
		<description><![CDATA[Sometimes a image files creation date is wrong and have to be corrected. This is a script I use to set a files creation date to the photos date retrieved from EXIF tags. The exiftool program should be available to run this script. #!/usr/bin/env perl use strict; $&#124;++; use Image::ExifTool qw(ImageInfo); use Time::Local; for my [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes a image files creation date is wrong and have to be corrected. This is a script I use to set a files creation date to the photos date retrieved from EXIF tags. The exiftool program should be available to run this script. </p>
<pre>
#!/usr/bin/env perl
use strict;
$|++;

use Image::ExifTool qw(ImageInfo);

use Time::Local;

for my $file (@ARGV) {
my $ii = ImageInfo($file, qw(DateTimeOriginal DateTime))
or warn("Skipping $file\n"), next;
my ($created) =
grep /\S/, @$ii{qw(DateTimeOriginal DateTime)};
next unless $created;
warn "using $created for $file\n";
if ($created =~ s/([-+ ])(\d\d):(\d\d)$//) {
my ($sign, $hour, $minute) = ($1, $2, $3);
# warn "ignoring offset of $sign $hour:$minute\n";
}
my @digits = $created =~ /(\d+)/g or next;
if ($digits[0] &lt; 1900) {
warn "bad year $digits[0] for $file";
next;
}
$digits[0] -= 1900;
$digits[1] -= 1;
my $gmtime = timegm(reverse @digits);
if ($gmtime &gt; time or $gmtime &lt; time - 86400*90) {
warn "preposterous gmtime for $file: ", scalar gmtime $gmtime;
# next;
}
utime($gmtime, $gmtime, $file) or warn "Cannot utime on $file: $!";
}</pre>
<p>Save it as datebyexif.pl</p>
<p>Usage:<br />
<code><br />
./datebyexif.pl *.JPG</code></p>
<p><a href="http://pario.no/wp-content/uploads/2007/12/datebyexif.pl" title="datebyexif.pl">Download the datebyexif.pl script</a></p>
<p>Source: <a href="http://www.macosxhints.com/comment.php?mode=view&amp;cid=83366">http://www.macosxhints.com/comment.php?mode=view&amp;cid=83366</a></p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.macosxhints.com\/comment.php?mode=view&amp;cid=83366"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMTIvMDUvc2V0LXBob3RvLWZpbGVkYXRlLWFuZC10aW1lLWFjY29yZGluZy10by1leGlmLWluZm8vPHdwdGI%2BU2V0IHBob3RvIGZpbGVkYXRlIGFuZCB0aW1lIGFjY29yZGluZyB0byBFWElGIGluZm88d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/12/05/set-photo-filedate-and-time-according-to-exif-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Organise images using exiftool</title>
		<link>http://pario.no/2007/04/11/organise-images-using-exiftool/</link>
		<comments>http://pario.no/2007/04/11/organise-images-using-exiftool/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 07:53:16 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[exiftool]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/04/11/organisere-bilder-vha-exiftool/</guid>
		<description><![CDATA[Move all files from directory dir into directories named by the original file extensions exiftool '-Directory&#60;datetimeoriginal&#62; Rename all images in dir according to the CreateDate date and time, adding a copy number with leading &#8216;-&#8217; if the file already exists (%-c), and preserving the original file extension (%e). Note the extra &#8216;%&#8217; necessary to escape [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Move all files from directory dir into directories named by the original file extensions</strong></p>
<pre>
exiftool '-Directory&lt;datetimeoriginal&gt;</pre>
<p><strong>Rename all images in dir according to the CreateDate date and time, adding a copy number with leading &#8216;-&#8217; if the file already exists (%-c), and preserving the original file extension (%e).</strong><br />
Note the extra &#8216;%&#8217; necessary to escape the filename codes (%c and %e) in the date format string.</p>
<pre>exiftool '-FileName</pre>
<p><strong>Set the filename of all JPG images in the current directory from the CreateDate and FileNumber tags, in the form &#8220;20060507_118-1861.jpg&#8221;</strong></p>
<pre>exiftool '-FileName&lt; ${CreateDate}_$filenumber.jpg' -d %Y%m%d dir/*.jpg</pre>
<p><strong>Adjust original date/time of all images in directory dir by subtracting one hour and 30 minutes.</strong></p>
<pre>exiftool -DateTimeOriginal-='0:0:0 1:30:0' dir</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDQvMTEvb3JnYW5pc2UtaW1hZ2VzLXVzaW5nLWV4aWZ0b29sLzx3cHRiPk9yZ2FuaXNlIGltYWdlcyB1c2luZyBleGlmdG9vbDx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/04/11/organise-images-using-exiftool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

