<?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>SavvyAdmin.com &#187; EXIF</title>
	<atom:link href="http://savvyadmin.com/tag/exif/feed/" rel="self" type="application/rss+xml" />
	<link>http://savvyadmin.com</link>
	<description>For savvy admins everywhere...</description>
	<lastBuildDate>Sun, 20 Jun 2010 21:53:13 +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>Fixing Dates in Image EXIF Tag Data from Linux</title>
		<link>http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/</link>
		<comments>http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 06:11:51 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[JPEG]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=378</guid>
		<description><![CDATA[I recently needed to organize a large number of old digital photos that had the wrong date embedded in their EXIF tag data. The camera I used many years ago would often lose track of time and would sometimes be set to the wrong year. Applications I now use to organize photos read this data [...]


Related posts:<ol><li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Permanent Link: Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/console-framebuffer-in-ubuntu/' rel='bookmark' title='Permanent Link: Console Framebuffer in Ubuntu'>Console Framebuffer in Ubuntu</a></li>
<li><a href='http://savvyadmin.com/resize-and-watermark-images-in-linux/' rel='bookmark' title='Permanent Link: Resize and Watermark Images in Linux'>Resize and Watermark Images in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I recently needed to organize a large number of old digital photos that had the wrong date embedded in their EXIF tag data.  The camera I used many years ago would often lose track of time and would sometimes be set to the wrong year.  Applications I now use to organize photos read this data and made my albums difficult to navigate.  I came across a Linux command line utility called <a title="jhead website" href="http://www.sentex.net/~mwandel/jhead/" target="_blank"><em>jhead</em></a> that allows you to modify this information to whatever you wish, and its easy to use in scripts as well.  Installing was easy, because it&#8217;s currently in most repositories, including Ubuntu&#8217;s.</p>
<p>To read existing EXIF tag data, simply run jhead against an image without any options.  As you can see from the example below, my date is set to the year 2022.</p>
<blockquote><p><code><strong>jhead image.jpg </strong><br />
File name    : image.jpg<br />
File size    : 159390 bytes<br />
File date    : 2004:01:12 07:35:23<br />
Camera make  : Samsung<br />
Camera model : Digimax 200<br />
<em><strong>Date/Time    : 2022:02:12 04:04:17</strong></em><br />
Resolution   : 800 x 600<br />
Flash used   : Yes<br />
Exposure time: 0.045 s  (1/22)<br />
Aperture     : f/2.8</code></p></blockquote>
<p>To clear all EXIF data from the file, use the <em><strong>-de</strong></em> option.  Then recreate the EXIF fields with the <em><strong>-mkexif</strong></em> option, and check the data again.  Notice the new Date/Time is set to the timestamp on the file.</p>
<blockquote><p><code><strong>jhead -de image.jpg</strong><br />
Modified: image.jpg</code></p>
<p><code><strong>jhead -mkexif image.jpg</strong><br />
Modified: image.jpg</code></p>
<p><code><strong>jhead image.jpg </strong><br />
File name    : image.jpg<br />
File size    : 147751 bytes<br />
File date    : 2004:01:12 07:35:23<br />
Date/Time    : 2004:01:12 07:35:23<br />
Resolution   : 800 x 600</code></p></blockquote>
<p>To change the entire timestamp manually, use the <em><strong>-ts</strong></em> option.  Notice, there is no space between the <em><strong>-ts</strong></em> and the option.  I could not trust the month and day, so I simply chaged the date to midnight on January 1, 2003.</p>
<blockquote><p><code><strong>jhead -ts2003:01:01-00:00:00 image.jpg</strong><br />
Modified: image.jpg</code></p>
<p><code><strong>jhead image.jpg</strong><br />
File name    : image.jpg<br />
File size    : 147751 bytes<br />
File date    : 2004:01:12 07:35:23<br />
Date/Time    : 2003:01:01 00:00:00<br />
Resolution   : 800 x 600</code></p></blockquote>
<p>For many more options, check out the man page or visit the <a title="jhead website" href="http://www.sentex.net/~mwandel/jhead/" target="_blank">jhead</a> site for more info.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;t=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux%20-%20http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;notes=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;bodytext=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;body=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;annotation=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Permanent Link: Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/console-framebuffer-in-ubuntu/' rel='bookmark' title='Permanent Link: Console Framebuffer in Ubuntu'>Console Framebuffer in Ubuntu</a></li>
<li><a href='http://savvyadmin.com/resize-and-watermark-images-in-linux/' rel='bookmark' title='Permanent Link: Resize and Watermark Images in Linux'>Resize and Watermark Images in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
