<?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; JPEG</title>
	<atom:link href="http://savvyadmin.com/tag/jpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://savvyadmin.com</link>
	<description>For savvy admins everywhere...</description>
	<lastBuildDate>Fri, 21 Jan 2011 17:53:27 +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>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='Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/resize-and-watermark-images-in-linux/' rel='bookmark' title='Resize and Watermark Images in Linux'>Resize and Watermark Images in Linux</a></li>
<li><a href='http://savvyadmin.com/rar-and-unrar-from-linux-cli/' rel='bookmark' title='RAR and UNRAR from Linux CLI'>RAR and UNRAR from Linux CLI</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>
<p>Related posts:<ol>
<li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/resize-and-watermark-images-in-linux/' rel='bookmark' title='Resize and Watermark Images in Linux'>Resize and Watermark Images in Linux</a></li>
<li><a href='http://savvyadmin.com/rar-and-unrar-from-linux-cli/' rel='bookmark' title='RAR and UNRAR from Linux CLI'>RAR and UNRAR from Linux CLI</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>

