<?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; Search Results  &#187;  EXIF+Orientation</title>
	<atom:link href="http://pario.no/search/EXIF+Orientation/feed/rss2/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Rename image files according to EXIF date</title>
		<link>http://pario.no/2008/01/14/rename-image-files-according-to-exif-date/</link>
		<comments>http://pario.no/2008/01/14/rename-image-files-according-to-exif-date/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 07:05:46 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[D80]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[exiv2]]></category>
		<category><![CDATA[jhead]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[ms-dos]]></category>
		<category><![CDATA[NEF]]></category>
		<category><![CDATA[Nikon]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://pario.no/2008/01/14/rename-image-files-according-to-exif-date/</guid>
		<description><![CDATA[This rename trick can be run in Windows, Linux and even Mac since the commandline program I&#8217;m going to use, exiv2, is available in all three platforms. Rename all image files in current folder to the format YYYYMMDDHHMM_Filename.EXT This has been tested on my Nikon D80 JPEG and NEF image files. Linux exiv2 -r'%Y%m%d-%H%M_:basename:' rename [...]]]></description>
			<content:encoded><![CDATA[<p>This rename trick can be run in Windows, Linux and even Mac since the commandline program I&#8217;m going to use, <a href="http://www.exiv2.org/">exiv2</a>, is available in all three platforms. Rename all image files in current folder to the format YYYYMMDDHHMM_Filename.EXT</p>
<p>This has been tested on my Nikon D80 JPEG and NEF image files.</p>
<p><strong>Linux</strong></p>
<pre>
exiv2 -r'%Y%m%d-%H%M_:basename:' rename $(ls)</pre>
<p><strong>Windows (from the command prompt)</strong></p>
<pre>
exiv2.exe -r %Y%m%d-%H%M_:basename: rename d*</pre>
<p><strong>Windows (in a MS-DOS batch file)</strong></p>
<pre>
exiv2.exe -r %%Y%%m%%d-%%H%%M_:basename: rename d*</pre>
<p>You have to add an extra % if you are going to use exiv2 in a Windows batch file, because % in batch files is treated as a variable and not as a switch to exiv2. </p>
<p>These examples require that you have access to the <strong>exiv2</strong> program from the current folder.</p>
<p><strong>Result</strong><br />
Now my image files have names like</p>
<pre>
20071022-1202_DSC_9727.JPG
20071022-1202_DSC_9727.NEF</pre>
<p><strong>Change in workflow</strong><br />
Since I rename all my files in the format YYYYMMDD-HHMM_Filename I&#8217;ve included it in my image &#8220;workflow&#8221; (a simple MS-DOS batch file) I wrote about in <a href="http://pario.no/2007/05/23/rotate-images-depending-on-the-exif-orientation-tag/">Rotate images depending on the EXIF orientation post</a>.</p>
<p>This has been tested successfully on the Windows exiv2 version 0.16</p>
<p><a href="http://pario.no/wp-content/uploads/2008/01/rotate.bat" title="rotate.bat">The new batch file can be downloaded here</a>.</p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.exiv2.org\/"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDEvMTQvcmVuYW1lLWltYWdlLWZpbGVzLWFjY29yZGluZy10by1leGlmLWRhdGUvPHdwdGI%2BUmVuYW1lIGltYWdlIGZpbGVzIGFjY29yZGluZyB0byBFWElGIGRhdGU8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/01/14/rename-image-files-according-to-exif-date/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rotate images depending on the EXIF Orientation Tag</title>
		<link>http://pario.no/2007/05/23/rotate-images-depending-on-the-exif-orientation-tag/</link>
		<comments>http://pario.no/2007/05/23/rotate-images-depending-on-the-exif-orientation-tag/#comments</comments>
		<pubDate>Wed, 23 May 2007 21:18:16 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[jhead]]></category>
		<category><![CDATA[jpegtran]]></category>
		<category><![CDATA[orientation]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/05/23/rotere-bilder-ut-i-fra-exif-orientation-tag-i-windows/</guid>
		<description><![CDATA[Automatic rotation of JPG images (inclusive EXIF thumbnail) can be performed by using jhead.exe and jpegtran.exe in Windows. jhead -ft -autorot *.JPG All JPG-files in that folder will be rotated and file time (time and date of exposure) will be set according to the EXIF info. -autorot Using the &#8216;Orientation&#8217; tag of the Exif header, [...]]]></description>
			<content:encoded><![CDATA[<p>Automatic rotation of JPG images (inclusive EXIF thumbnail) can be performed by using <a href="http://www.sentex.net/~mwandel/jhead/jhead.exe">jhead.exe</a> and <a href="http://sylvana.net/jpegcrop/jpegtran/jpegtran.exe">jpegtran.exe</a> in Windows.</p>
<pre>jhead -ft -autorot *.JPG</pre>
<p>All JPG-files in that folder will be rotated and file time (time and date of exposure) will be set according to the EXIF info.<br />
<span id="more-220"></span></p>
<blockquote><p> <strong>-autorot</strong><br />
Using the &#8216;Orientation&#8217; tag of the Exif header, rotate the image so that it is upright. The program &#8216;jpegtran&#8217; is used to perform the rotation. This program is present in most Linux distributions. For Windows, you need to get a copy of it. After rotation, the orientation tag of the EXIF header is set to &#8217;1&#8242; (normal orientation). The Exif thumbnail is also rotated as of Jhead version 2.5. Other fields of the Exif header, including dimensions are untouched, but the JPEG height/width are adjusted.<br />
This feature is especially useful with newer digital cameras, which set the orientation field in the Exif header automatically using a built in orientation sensor in the camera.</p></blockquote>
<blockquote><p> <strong>-ft</strong><br />
Sets the file&#8217;s system time stamp to what is stored in the EXIF header.</p></blockquote>
<p>This is the way to fix the Orientation EXIF tag if a picture is rotated, but the EXIF Orientation tag doesn&#8217;t reflect this change.</p>
<pre>
jhead -ft -norot DSC_XXX.JPG</pre>
<blockquote><p> <strong>-norot</strong><br />
Clears the Exif header rotation tag without altering the image. You may find that your images have rotation tags in them from your camera, but you already rotated them with some lossless tool without clearing the rotation tag. Now your friendly browser rotates the images on you again because the image rotation tag still indicates the image should be rotated. Use this option to fix this problem. You may also want to regenerate the thumbnail using the -rgt option.</p></blockquote>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.sentex.net\/~mwandel\/jhead\/jhead.exe","http:\/\/sylvana.net\/jpegcrop\/jpegtran\/jpegtran.exe"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMjMvcm90YXRlLWltYWdlcy1kZXBlbmRpbmctb24tdGhlLWV4aWYtb3JpZW50YXRpb24tdGFnLzx3cHRiPlJvdGF0ZSBpbWFnZXMgZGVwZW5kaW5nIG9uIHRoZSBFWElGIE9yaWVudGF0aW9uIFRhZzx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/05/23/rotate-images-depending-on-the-exif-orientation-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed copyright notices into JPEG images</title>
		<link>http://pario.no/2007/04/12/embed-copyright-notices-into-jpeg-images/</link>
		<comments>http://pario.no/2007/04/12/embed-copyright-notices-into-jpeg-images/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 06:36:56 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/04/12/embed-copyright-notices-into-jpeg-images/</guid>
		<description><![CDATA[Digital Cameras embed several types of data inside the images you take, including camera manufacturer, date the picture was taken, and aperture, shutter speed, and focal length settings. These are called EXIF tags and are also called &#8220;metadata.&#8221; Here&#8217;s how to take advantage of these tags to embed your own copyright notice. You&#8217;ll need the [...]]]></description>
			<content:encoded><![CDATA[<p>Digital Cameras embed several types of data inside the images you take, including camera manufacturer, date the picture was taken, and aperture, shutter speed, and focal length settings. These are called EXIF tags and are also called &#8220;metadata.&#8221; Here&#8217;s how to take advantage of these tags to embed your own copyright notice.</p>
<p>You&#8217;ll need the program exiftags to this excercise.<br />
<span id="more-112"></span><br />
Let&#8217;s look at my picture <strong>trees.jpg</strong>&#8216;s EXIF tags using <strong>exiftags</strong>:</p>
<pre>$ exiftags trees.jpg
Camera-Specific Properties:

Equipment Make: OLYMPUS OPTICAL CO.,LTD
Camera Model: C40Z,D40Z
Camera Software: QuickTime 6.4
Maximum Lens Aperture: f/4.8

Image-Specific Properties:

Image Orientation: Top, Left-Hand
Image Orientation: Top, Left-Hand
Horizontal Resolution: 72 dpi
Vertical Resolution: 72 dpi
Image Created: 2003:12:07 15:49:06
Exposure Time: 1/500 sec
F-Number: f/5.6
Exposure Program: Creative
ISO Speed Rating: 100
Exposure Bias: 0 EV
Metering Mode: Pattern
Light Source: Unknown
Flash: No Flash
Focal Length: 19.80 mm
Color Space Information: sRGB
Image Width: 2272
Image Height: 1704</pre>
<p>Now lets add a &#8220;Comment&#8221; with my copyright notice. Type:</p>
<p><code>$ exifcom -w "copyright Joe Blow" trees.jpg</code></p>
<p>Now let&#8217;s look at the tags again to see the new &#8220;Comment&#8221; field:</p>
<pre>$ exiftags trees.jpg
Camera-Specific Properties:

Equipment Make: OLYMPUS OPTICAL CO.,LTD
...
...
Flash: No Flash
Focal Length: 19.80 mm
Comment: copyright Joe Blow
Color Space Information: sRGB
Image Width: 2272
Image Height: 1704</pre>
<p>You can add your copyright tag to a folder full of images by doing:</p>
<pre>$ cd /path/to/picture/directory
$ exifcom -fw "copyright Joe Blow" *</pre>
<p>Another command line utility that changes exif data and comment fields is jhead. To add a comment, use the following command:</p>
<p><code>jhead -cl "my comment here" picturename.jpg</code></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 = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDQvMTIvZW1iZWQtY29weXJpZ2h0LW5vdGljZXMtaW50by1qcGVnLWltYWdlcy88d3B0Yj5FbWJlZCBjb3B5cmlnaHQgbm90aWNlcyBpbnRvIEpQRUcgaW1hZ2VzPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/04/12/embed-copyright-notices-into-jpeg-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

