<?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>picurl &#187; exiftool</title>
	<atom:link href="http://www.picurl.org/blog/tag/exiftool/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.picurl.org/blog</link>
	<description>tagging reinvented</description>
	<lastBuildDate>Wed, 14 Jul 2010 22:24:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Take a (Power)Shot at ThermoTagging</title>
		<link>http://www.picurl.org/blog/2009/10/25/take-a-powershot-at-thermotagging/</link>
		<comments>http://www.picurl.org/blog/2009/10/25/take-a-powershot-at-thermotagging/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 17:12:38 +0000</pubDate>
		<dc:creator>Franz Buchinger</dc:creator>
				<category><![CDATA[EXIF-Hacks]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[exiftool]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[IPTC]]></category>
		<category><![CDATA[picasa]]></category>
		<category><![CDATA[thermotagging]]></category>

		<guid isPermaLink="false">http://www.picurl.org/blog/?p=37</guid>
		<description><![CDATA[Phil Harvey recently published Exiftool 7.97, which comes with a well hidden, but exciting feature: it can decode the camera temperature for Canon PowerShot Models. All Canon Powershots built 2005 or later store this information in their EXIF header, albeit in a proprietary, previously unknown format. According to Phil, the camera temperature corresponds more or [...]]]></description>
			<content:encoded><![CDATA[<p>Phil Harvey recently published <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">Exiftool 7.97</a>, which comes with a well hidden, but exciting feature: it can decode the camera temperature for Canon PowerShot Models. All Canon Powershots built 2005 or later store this information in their EXIF header, albeit in a proprietary, previously unknown format.  According to Phil, the camera temperature corresponds more or less to the external temperature, if the device was exposed for a certain time to an environment. This opens interesting possibilities for image searches: you can quickly filter out pictures taken on a hot beach or during a snowball fight in winter. This article shows you how to access the camera temperature and explores the possibilities of thermo tagging.</p>
<p><strong>UPDATE:Also quite a few Canon IXUS and EOS models as well as many Pentax cams seem to write this tag. </strong> </p>
<p><div id="attachment_68" class="wp-caption alignnone" style="width: 610px"><img src="http://www.picurl.org/blog/wp-content/uploads/2009/10/thermotagging_logo.jpg" alt="filtering the temperature of your photos" title="ThermoTagging" width="600" height="160" class="size-full wp-image-68" /><p class="wp-caption-text">Hot or cold? - The CameraTemperature tag recorded by Canon Powershot cameras allows you to conduct temperature-based searches.</p></div><small>Footage (c) Flickr users <a href="http://www.flickr.com/photos/orangesmell/104131522/sizes/l/">Orangesmell</a> and <a href="http://www.flickr.com/photos/aduki/2413849339/sizes/l/">Aduki</a></small></p>
<h3>Got footage?</h3>
<p>If you don&#8217;t own a PowerShot, you can quickly download the necessary footage: Phil Harvey hosts a huge <a href="http://owl.phy.queensu.ca/~phil/exiftool/sample_images.html">&#8220;Meta Information Repository&#8221;</a>, that contains sample images from many camera manufacturers, including <a href="http://owl.phy.queensu.ca/~phil/exiftool/Canon.tar.gz">Canon</a>. Simply download the Canon Archive and extract it to your hard disk. Note: to save bandwith, the actual image has been replaced by a tiny placeholder, but the original metadata is still in place. This is fully sufficient for our experiments.</p>
<p>As I don&#8217;t own a PowerShot by myself, I also made use of the footage in the repository. If you are a PowerShot user and want to create footage by yourself, be warned: don&#8217;t expose your camera to extreme temperatures as this might rapidly shorten its life expectancy.</p>
<h3>Extracting the Camera Temperature</h3>
<p>First make sure that you &#8216;ve installed Exiftool 7.97 or newer on your system. When in doubt, simply run</p>
<p><code>exiftool -ver</code></p>
<p>from your shell or command prompt &#8211; this command displays exiftool&#8217;s version number. Then navigate to a folder containing unmodified photos taken by a Canon Powershot camera and run</p>
<p><code>exiftool -CameraTemperature -ext JPG .</code></p>
<p>and you should get a list like<br />
<code><br />
Camera Temperature              : 23 C<br />
======== CanonPowerShotSD890IS.jpg<br />
Camera Temperature              : 26 C<br />
======== CanonPowerShotSD900.jpg<br />
Camera Temperature              : 25 C<br />
======== CanonPowerShotSD950IS.jpg<br />
Camera Temperature              : 30 C<br />
</code></p>
<p>Exiftool lists the camera temperature in degrees celsius.  The <code>-ext JPG .</code> part of the command line makes exiftool look for all JPG files in the current directory, no matter if the extension is upper- or lowercase. By appending <code>-r</code> you can expand the search to subdirectories.</p>
<h3>Filtering by temperature</h3>
<p>With a bit of command-line-magic, you can also filter your photos by temperature:</p>
<p><code>exiftool -cameratemperature -if '$cameratemperature# < 20' -ext JPG .</code></p>
<p>will list all photos that were taken at a camera temperature below 20 degrees celsius, whereas </p>
<p></code><code>exiftool -cameratemperature -if '$cameratemperature# >= 20' -ext JPG .</code></p>
<p>displays a list of all photos taken at 20 degrees or more. </p>
<p>These two filtering commands deserve some explanation: the <code>-if</code> parameter tells exiftool to process only files that meet a certain condition. Also the inner part of the if clause is a bit special: <code>'$cameratemperature# < 20'</code> consists of the tag name cameratemperature (the prepended </code><code>$</code> is needed to identify a tagname within a string). The appended <code>#</code> tells exiftool to convert the tag value to a number (e.g. <code>19</code> instead of <code>'19 C'</code>). The rest of the clause is quite easy: <code>'< 20'</code> stands for "all values smaller than 20", while </code><code>&gt;=20</code> means &#8220;greater or equal to 20&#8243;.</p>
<h3>ThermoTagging hot or cool photos</h3>
<p>As exiftool <i>&#8220;decodes a riddle wrapped in a mystery inside an enigma&#8221;</i>  (quote Phil Harvey), it can extract such esoteric tags like Canon:CameraTemperature that are buried in the depths of propriertary Makernotes. Most (if not all) other Metadata readers and image management applications fail decoding this information. So it would be nice to convert the camera temperature to a format that all other applications can access. The most common way to do so is to create an IPTC Keyword for the information contained in the tag. IPTC Keywords are read by most image editors including Photoshop, many photosharing services (including flickr and picasa) auto-convert them to tags during photo upload.<br />
<img src="http://www.picurl.org/blog/wp-content/uploads/2009/10/flickr_thermotags_snippet.png" alt="Converted Thermotags at flickr.com" /><br />
<i>Converted Thermotags at flickr.com</i></p>
<p><b>Storing descriptive tags</b></p>
<p><code>exiftool -keywords+=cold -if '$cameratemperature# < 15' -ext JPG .</code></p>
<p>adds the IPTC keyword "cold" to your photo, if the camera temperature was less than 15 degrees. Just modify keyword and if-clause to tag "hot" photos <img src='http://www.picurl.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
To test your results, you can use</p>
<p></code><code><br />
exiftool -keywords -cameratemperature -if '$keywords eq "cool"' *.jpg<br />
======== CanonEOS_KissX2.jpg<br />
Keywords                        : cool<br />
Camera Temperature              : 18 C<br />
======== CanonIXY_DIGITAL20IS.jpg<br />
Keywords                        : cool<br />
Camera Temperature              : 17 C<br />
[...]<br />
</code><br />
This commands lists all photos with the keyword &#8220;cold&#8221; and extracts their keywords and Camera Temperature.</p>
<p><b>Storing precise values</b></p>
<p> If you want to store the precise degree value, you can use:</p>
<p><code>exiftool '-cameratemperature+>keywords' *.jpg</code></p>
<p>which copies the Camera Temperature value directly to an IPTC Keyword:<br />
<code><br />
exiftool -keywords CanonPowerShotSX200IS.jpg<br />
Keywords                        : cool, 18 C<br />
</code></p>
<h3>Is the camera temperature really identical with the outside temperature?</h3>
<p>Although I don&#8217;t own a Canon Powershot, I wanted to verify Phil&#8217;s assumptions on Canon&#8217;s CameraTemperature. In short, he claims that the CameraTemperature is close to the outside temperature, if the device was left in an environment for a certain time. According to him, taking a lot of images in a short time additionally heats up the camera by some degrees. While my tests can&#8217;t prove the equality of the temperatures, they indicate a strong correlation (maybe with some offset factor):</p>
<ul>
<li><b>Range of the CameraTemperature</b> exiftool dumped out values between 12 and 39 degrees celsius for Phil&#8217;s sample images. This indicates that the camera temperature is maybe a bit above the outside temperature (why are there no pics with values less than 10 degrees?) </li>
<li><b>Correlation of creation date and CameraTemperature</b> When I compared the temperature with the creation date (Exif:DateTimeOriginal), it turned out that all photos with value less than 20 degrees were taken in autumn or winter </li>
<li><b>Visual correlation</b> I extracted a few thumbnails from the &#8220;hottest&#8221; (> 35) degrees and coldest (< 15 degrees) values) and tried to find visual hints for heat or coldness (e.g. snow, summer clothes etc). My verdict is that there are no contradictory elements, but you can judge for yourself by looking at the <a href="http://www.picurl.org/blog/wp-content/uploads/2009/10/thumbnails_hot.png">hottest or the <a href="http://www.picurl.org/blog/wp-content/uploads/2009/10/cool_thumbnails.png">coldest</a> thumbnails.</li>
</ul>
<p><b>Acknowledgements</b><br />
I want to thank Phil Harvey for developing <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">Exiftool</a> and his suggestions on this article. Vesa Kivisto also deserves a honorary mention for the decoding of the CameraTemperature tag.</p>]]></content:encoded>
			<wfw:commentRss>http://www.picurl.org/blog/2009/10/25/take-a-powershot-at-thermotagging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shutter Count &#8211; the mileage indicator for your DSLR</title>
		<link>http://www.picurl.org/blog/2009/07/25/shutter-count-the-mileage-indicator-for-your-dslr/</link>
		<comments>http://www.picurl.org/blog/2009/07/25/shutter-count-the-mileage-indicator-for-your-dslr/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 17:15:12 +0000</pubDate>
		<dc:creator>Franz Buchinger</dc:creator>
				<category><![CDATA[EXIF-Hacks]]></category>
		<category><![CDATA[Canon]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[exiftool]]></category>
		<category><![CDATA[Firmware]]></category>
		<category><![CDATA[Nikon]]></category>
		<category><![CDATA[Olympus]]></category>
		<category><![CDATA[Pentax]]></category>
		<category><![CDATA[shutter]]></category>

		<guid isPermaLink="false">http://www.picurl.org/blog/?p=8</guid>
		<description><![CDATA[So you are about to buy a used DSLR cam from eBay. The model isn&#8217;t top-notch, but still solid quality and was released 2 years ago. The pictures on the auction page of the cam look good, but was the camera really rarely used as stated in the auction text? Or are you making your [...]]]></description>
			<content:encoded><![CDATA[<p>So you are about to buy a used <a href="http://en.wikipedia.org/wiki/Dslr">DSLR</a> cam from eBay. The model isn&#8217;t top-notch, but still solid quality and was released 2 years ago. The pictures on the auction page of the cam look good, but was the camera really rarely used as stated in the auction text? Or are you making your bid for an over-used device that already suffers from abrasion &#8220;diseases&#8221; like wobbly buttons?</p>
<h3>Estimating the &#8220;true age&#8221; of a camera</h3>
<p>The date of purchase isn&#8217;t a very reliable indicator, as the usage intensity of cameras can vary greatly. A 2-year-old DSLR that is mainly used at holidays or family events is surely in a better condition than one that serves as bi-weekly-party snapshot device.</p>
<p>It would be nice to have something like a mileage indicator for DSLRs, that more or less counts every picture ever taken with a particular cam. Luckily, such a magic indicator already exists, although its information isn&#8217;t always easy to obtain: The Shutter Count measures the number of shutter releases during the lifetime of your camera. A <a href="http://en.wikipedia.org/wiki/Shutter_(photography)">shutter</a> is a moveable device, that exposes the camera sensor to the light during the shooting of the picture. Roughly spoken, the number of shutter releases approximately corresponds to the number of pictures taken with your camera.</p>
<h3>Accessing the Shutter Count with exiftool</h3>
<p>Unfortunately, the Shutter Count isn&#8217;t very easy to access. Only a few DSLR models from <a href="http://public.robo47.net/kamera-ausloesungen-aus-original-bild-auslesen.php#faq-welche-kameras-werden-unterstuetzt">Nikon, Canon, Pentax and Samsung</a> (green model names) dump this information out with their EXIF metadata. If you intend to buy such a camera, you can ask the seller to mail you an unmodified photo directly taken from the camera.<br />
<img src="http://www.picurl.org/blog/wp-content/uploads/2009/07/shutter-count-online_cropped.png" alt="Jeffrey Friedl&#039;s Exif Viewer reports the Shutter count" title="Jeffrey Friedl&#039;s Exif Viewer reports the Shutter count" width="459" height="288" class="alignnone size-full wp-image-24" /><br />
<em>Jeffrey Friedl&#039;s Exif Viewer reports the Shutter count</em></p>
<p>You can then either upload the photo to <a href="http://regex.info/exif.cgi/exif.cgi">Jeffrey Friedl&#8217;s Exif viewer</a> or install the famous <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">ExifTool metadata extractor</a> on your system (Win/Mac/Linux). Open a shell/console, navigate to the directory where you stored the photo and type<br />
<code><br />
exiftool THE_UNMODIFIED_IMAGE.JPG | find "Shutter Count"<br />
</code> on Windows or</p>
<p><code><br />
exiftool THE_UNMODIFIED_IMAGE.JPG | grep Shutter Count<br />
</code> on Linux or Mac OS.</p>
<p>If a line like<br />
<code>Shutter Count:      2391</code> </p>
<p>appears at your command prompt, your attempt was successful. If nothing appears, your model likely doesn&#8217;t include the shutter count in its metadata. NOTE: Only a few EXIF viewers will extract the Shutter Count value, as it is stored in the so-called Makernotes (proprietary extensions of the EXIF standard). To get reliable results, please use the tools I mentioned above.</p>
<h3>The Firmware way</h3>
<p><div id="attachment_26" class="wp-caption alignnone" style="width: 260px"><img src="http://www.picurl.org/blog/wp-content/uploads/2009/07/shutter-count-olympus-e500.jpg" alt="This Olympus E-500 has a Shutter Count value of 2265 (screenshot of cam display, yellow highlighted)" title="Shutter Count of an Olympus E-500 (screenshot of cam display, yellow highlighted)" width="250" height="185" class="size-full wp-image-26" /><p class="wp-caption-text">This Olympus E-500 has a Shutter Count value of 2265 (screenshot of cam display, yellow highlighted)</p></div><br />
Anyway, there is still hope: a few Models, such as the popular <a href="http://www.olympus.co.uk/consumer/dslr_6760.htm">Olympus E-Series</a> cameras, allow you to access the shutter count by sniffing the camera&#8217;s firmware. The downside: you need physical access to the camera and some patience (or a reliable AND skilled person that does this for you). <a href="http://www.biofos.com/cornucop/hidden.html">This guide</a> shows you how to display the shutter count value on the screen of your Olympus E-Series camera. </p>
<h3>Interpreting the numbers</h3>
<p>You had a hard time to retrieve the shutter count, but what does the value mean? Is the cam still a teenager or already almost in heaven? Oleg Kikin maintains a <a href="http://www.olegkikin.com/shutterlife/">Shutter Count life expectancy database</a>. Users report their shutter count numbers and whether the cam is still alive or already trash.<br />
<div id="attachment_25" class="wp-caption alignnone" style="width: 540px"><img src="http://www.picurl.org/blog/wp-content/uploads/2009/07/shutter-count-nikon-d70.png" alt="Life expectancy of a Nikon D70 based on the shutter count value" title="shutter-count-nikon-d70" width="530" height="426" class="size-full wp-image-25" /><p class="wp-caption-text">Life expectancy of a Nikon D70 based on the shutter count value (clicks). Only 37% of all models with more than 100.000 pictures are still working. </p></div><br />
While these numbers can give you some orientation, don&#8217;t forget to consider that a lot of factors impact the live expectancy of a DSLR: outdoor usage, storage or maintainance intervals. You should also be aware of the fact that shutter counts are not immutable. EXIF-based shutter counts can be manipulated quite easily, but also the firmware values aren&#8217;t immune: firmware upgrades or repairs may alter the shutter count.</p>]]></content:encoded>
			<wfw:commentRss>http://www.picurl.org/blog/2009/07/25/shutter-count-the-mileage-indicator-for-your-dslr/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
