<?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>Schadenfreude &#187; images</title>
	<atom:link href="http://www.ralree.com/tag/images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sat, 21 Jan 2012 20:10:19 +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>I am KB3RXM</title>
		<link>http://www.ralree.com/2008/11/18/i-am-kb3rxm/</link>
		<comments>http://www.ralree.com/2008/11/18/i-am-kb3rxm/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 01:16:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fcc]]></category>
		<category><![CDATA[ham radio]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[kb3rxm]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[radio]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/11/18/i-am-kb3rxm</guid>
		<description><![CDATA[I got my callsign today: KB3RXM Now, to actually buy a radio. I&#8217;ve been doing a lot of thinking, and I think I might be happiest with a home base station after all, even though I live in an apartment. I may buy a little portable station kit to build, but that will be secondary to the large fixed station. Now, I just need to figure out exactly what I want. Power is a pretty big deal since I think [...]]]></description>
			<content:encoded><![CDATA[<p>I got my callsign today:</p>
<h1><a href="http://wireless2.fcc.gov/UlsApp/UlsSearch/license.jsp?licKey=3057426">KB3RXM</a></h1>
<p></p>
<p><a href="http://ralree.com/assets/2008/11/18/KB3RXM-1.jpg"><img src="http://ralree.com/assets/2008/11/18/KB3RXM-1_medium.jpg" alt="KB3RXM"/></a></p>
<p>Now, to actually buy a radio.  I&#8217;ve been doing a lot of thinking, and I think I might be happiest with a home base station after all, even though I live in an apartment.  I may buy a little portable station kit to build, but that will be secondary to the large fixed station.  Now, I just need to figure out exactly what I want.  Power is a pretty big deal since I think I&#8217;ll be in a pretty suboptimal antenna situation.  I am going to probably purchase a HamStick antenna for the balcony as I&#8217;ve seen some evidence that it may perform pretty well out there, and it&#8217;s pretty stealthy.</p>
<p>I&#8217;ll probably be testing for my General license on December 6th in Reisterstown.  That should be fun&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/11/18/i-am-kb3rxm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Putting Images on the iPod Touch from Linux</title>
		<link>http://www.ralree.com/2008/08/06/putting-images-on-the-ipod-touch-from-linux/</link>
		<comments>http://www.ralree.com/2008/08/06/putting-images-on-the-ipod-touch-from-linux/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 05:37:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/08/07/putting-images-on-the-ipod-touch-from-linux</guid>
		<description><![CDATA[Idea I wanted to put images on my iPod Touch without using iTunes since, as most of us know, there is no good way to use it from Linux. It turns out there is a magic directory on the iPod Touch where it saves images from Safari. I simply looked at how it saved them, and applied it on my box here at home. Requirements Jailbroken iPod Touch (I used WinPWN), with OpenSSH installed and working (the root password is [...]]]></description>
			<content:encoded><![CDATA[<h2>Idea</h2>
<p>I wanted to put images on my iPod Touch without using iTunes since, as most of us know, there is no <strong>good</strong> way to use it from Linux.  It turns out there is a magic directory on the iPod Touch where it saves images from Safari.  I simply looked at how it saved them, and applied it on my box here at home.</p>
<h2>Requirements</h2>
<ul>
<li>Jailbroken iPod Touch (I used WinPWN), with OpenSSH installed and working (the root password is <em>alpine</em>)</li>
<li>Firmware 2.0 (Though, 1.x may work, I just haven’t tried it)</li>
<li>A Linux box with a bash shell</li>
<li>Cool images</li>
<li><code>convert</code> and <code>mogrify</code> from ImageMagick installed</li>
</ul>
<h2>Method</h2>
<h5><span style="color:red;">These instructions might work for the iPhone as well.  YMMV</span></h5>
<p>All of your images must be in the format <strong>IMG_XXXX.YYY</strong> where <strong>XXXX</strong> is a number &lt; 9999, and <strong>YYY</strong> is either <strong>JPG</strong> or <strong>THM</strong> (THM is a thumbnail).  To rename our files, I use a simple trick I outlined in my last post:</p>
<pre><code>
EII=4; for i in *.jpg; do ls $i; \
NEWNAME=IMG_00`printf "%02d" $EII`.JPG; \
echo Renaming $i to $NEWNAME; \
mv $i $NEWNAME; EII=`expr $EII + 1`; done
</code></pre>
<p>That will rename all the JPEG files in order from 4 to, in my case, 62.  Now, I have to make the thumbnails:</p>
<pre><code>
for i in `ls *.JPG | cut -d '.' -f 1`; do \
convert $i.JPG -resize 75x75! $i.THM; \
done
</code></pre>
<p>The <strong>75&#215;75!</strong> part makes sure they are exactly those dimensions.  You end up with something like the following:</p>
<pre><code>
IMG_0004.JPG  IMG_0016.JPG  IMG_0028.JPG  IMG_0040.JPG  IMG_0052.JPG
IMG_0004.THM  IMG_0016.THM  IMG_0028.THM  IMG_0040.THM  IMG_0052.THM
IMG_0005.JPG  IMG_0017.JPG  IMG_0029.JPG  IMG_0041.JPG  IMG_0053.JPG
....
</code></pre>
<p>Now, note that the iPod can only display images under 100KB (to my knowledge).  If your high-res image is too large, it will just display the magnified 75&#215;75, which is <strong><em>really</em></strong><em></em> ugly.  So, make sure all your images fit that description, and if they don’t, <code>mogrify -resize</code> them until they do (or take other measures as necessary).  I used this:</p>
<pre><code>
mogrify -resize 400x *.JPG
</code></pre>
<p>All my images turned out to be between 30 and 90 KB.  This also keeps the aspect ratio, unlike the <strong>75&#215;75!</strong>.</p>
<p>Now, SSH into your iPod (if you can’t do this yet, google it).  You should have the following file:</p>
<pre><code>
/var/mobile/Media/DCIM/.MISC/Info.plist
</code></pre>
<p>Open this file in vi, and observe the <strong>plist&gt;dict&gt;integer</strong> part of the hierarchy:</p>
<pre><code>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
        &lt;key&gt;LastFileGroupNumber-100&lt;/key&gt;
        &lt;integer&gt;62&lt;/integer&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</code></pre>
<p>So, I put <strong>62</strong> in there since the last image I have is numbered 0062.  It’s a very simple idea.  Now, just load them onto the iPod:</p>
<pre><code>
scp IMG_00* root@ipod:/var/mobile/Media/DCIM/100APPLE/
</code></pre>
<p>Let’s have a look from the iPod console!</p>
<pre><code>
HanksTouch:/var/mobile/Media/DCIM/100APPLE root# ls
IMG_0002.JPG  IMG_0014.THM  IMG_0027.JPG  IMG_0039.THM  IMG_0052.JPG
IMG_0002.THM  IMG_0015.JPG  IMG_0027.THM  IMG_0040.JPG  IMG_0052.THM
</code></pre>
<p>Beautiful.  Now, to test it…</p>
<p><img class="alignleft" src="http://ralree.com/assets/2008/8/6/IMG_0002.PNG" alt="" width="320" height="480" /><img class="alignleft" src="http://ralree.com/assets/2008/8/6/IMG_0001.PNG" alt="" width="320" height="480" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/08/06/putting-images-on-the-ipod-touch-from-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photoslice in Bluecloth and Mephisto</title>
		<link>http://www.ralree.com/2008/01/05/photoslice-in-bluecloth-and-mephisto/</link>
		<comments>http://www.ralree.com/2008/01/05/photoslice-in-bluecloth-and-mephisto/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 21:49:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bluecloth]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[mephisto]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/01/06/photoslice-in-bluecloth-and-mephisto</guid>
		<description><![CDATA[So, I found this today, and it is awesome. I wanted it in Bluecloth so I could use it in Mephisto. Here&#8217;s how. First, I needed to make it so I could still do normal images, but turn on coolness if I want. Here&#8217;s the goal I came up with for the grammar: [![](thumburl.jpg)](imageurl.jpg "Scrolly Text at top" "photoslice") Here&#8217;s the first test, with a single image: And now a set with a namespace: I did it by simply modifying [...]]]></description>
			<content:encoded><![CDATA[<p>So, I found <a href="http://www.photoslice.net/guide/">this</a> today, and it is awesome.  I wanted it in Bluecloth so I could use it in Mephisto.  Here&#8217;s how.</p>
<p>First, I needed to make it so I could still do normal images, but turn on coolness if I want.  Here&#8217;s the goal I came up with for the grammar:</p>
<pre><code>
[![](thumburl.jpg)](imageurl.jpg "Scrolly Text at top" "photoslice")
</code></pre>
<p>Here&#8217;s the first test, with a single image:</p>
<p><a href="http://ralree.com/assets/2008/1/5/foshizzlepowell.jpg" title="Colin Powell Loves you" rel="photoslice"><img src="http://ralree.com/assets/2008/1/5/foshizzlepowell_thumb.jpg" alt=""/></a></p>
<p>And now a set with a namespace:</p>
<p><a href="http://ralree.com/assets/2008/1/5/ninjabeg.jpg" title="Ninjas killed his family.  Poor guy..." rel="photoslice.bluecloth"><img src="http://ralree.com/assets/2008/1/5/ninjabeg_thumb.jpg" alt=""/></a><br />
<a href="http://ralree.com/assets/2008/1/5/South_Park_Zach.jpg" title="Zach used to look like this." rel="photoslice.bluecloth"><img src="http://ralree.com/assets/2008/1/5/South_Park_Zach_thumb.jpg" alt=""/></a><br />
<a href="http://ralree.com/assets/2008/1/5/South_Park_Hank.jpg" title="I used to look like this." rel="photoslice.bluecloth"><img src="http://ralree.com/assets/2008/1/5/South_Park_Hank_thumb.jpg" alt=""/></a></p>
<p>I did it by simply modifying the regex and image url parsing function in BlueCloth like so:</p>
<div class="CodeRay">
<div class="code">
<pre>
  <span class="co">InlineLinkRegex</span> = <span class="rx"><span class="dl">%r{</span><span class="k">
    </span><span class="ch">\(</span><span class="k">            # Literal paren
      [ ]*        # Zero or more spaces
      &lt;?(.+?)&gt;?     # URI = $1
      [ ]*        # Zero or more spaces

      (?:         # title
        ([</span><span class="ch">\&quot;</span><span class="ch">\'</span><span class="k">])    # Opening quote char = $2
        (.*?)     # Title = $3
        </span><span class="ch">\2</span><span class="k">        # Matching quote char
      )?          # Title is optional
      [ ]*        # Zero or more spaces
      (?:         # rel
        ([</span><span class="ch">\&quot;</span><span class="ch">\'</span><span class="k">])    # Opening quote char = $2
        (.*?)     # rel = $5
        </span><span class="ch">\4</span><span class="k">        # Matching quote char
      )?          # rel is optional
    </span><span class="ch">\)</span><span class="k">
    </span><span class="dl">}</span><span class="mod">x</span></span>

    <span class="c"># and later...</span>

        <span class="c"># ...or for an inline style second part</span>
        <span class="r">elsif</span> <span class="iv">@scanner</span>.scan( <span class="co">InlineLinkRegex</span> )
          url = <span class="iv">@scanner</span>[<span class="i">1</span>]
          title = <span class="iv">@scanner</span>[<span class="i">3</span>]
          rel = <span class="iv">@scanner</span>[<span class="i">5</span>]
          <span class="iv">@log</span>.debug <span class="s"><span class="dl">&quot;</span><span class="k">  Found an inline link to %p</span><span class="dl">&quot;</span></span> % url

          text += <span class="s"><span class="dl">%{</span><span class="k">&lt;a href=&quot;%s&quot;</span><span class="dl">}</span></span> % escape_md( url )
          <span class="r">if</span> title
            title.gsub!( <span class="rx"><span class="dl">/</span><span class="k">&quot;</span><span class="dl">/</span></span>, <span class="s"><span class="dl">&quot;</span><span class="k">&amp;quot;</span><span class="dl">&quot;</span></span> )
            text += <span class="s"><span class="dl">%{</span><span class="k"> title=&quot;%s&quot;</span><span class="dl">}</span></span> % escape_md( title )
          <span class="r">end</span>
          <span class="r">if</span> rel
            rel.gsub!( <span class="rx"><span class="dl">/</span><span class="k">&quot;</span><span class="dl">/</span></span>, <span class="s"><span class="dl">&quot;</span><span class="k">&amp;quot;</span><span class="dl">&quot;</span></span> )
            text += <span class="s"><span class="dl">%{</span><span class="k"> rel=&quot;%s&quot;</span><span class="dl">}</span></span> % escape_md( rel )
          <span class="r">end</span>
</pre>
</div>
</div>
<p>I also added the following to my Mephisto theme layout, in the head section:</p>
<pre><code>
   &lt;!-- Photoslice --&gt;
   &lt;link rel="stylesheet" type="text/css" href="/javascripts/photoslice/style.css" /&gt;
   {{ "photoslice/functions.js" | javascript }}
</code></pre>
<p>Once again, Ruby is awesome.  And so is Markdown.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/01/05/photoslice-in-bluecloth-and-mephisto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding bad JPEGs with Xorg hacks in Ubuntu</title>
		<link>http://www.ralree.com/2007/11/25/finding-bad-jpegs-with-xorg-hacks-in-ubuntu/</link>
		<comments>http://www.ralree.com/2007/11/25/finding-bad-jpegs-with-xorg-hacks-in-ubuntu/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 00:46:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[qiv]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/11/25/finding-bad-jpegs-with-xorg-hacks-in-ubuntu</guid>
		<description><![CDATA[So, I have all these JPEGs, and I want to know which ones are corrupt (specifically, ones that end prematurely). qiv will spit out the following to STDERR when it finds one: Premature end of JPEG file So, this is nice, except it&#8217;s entirely unscriptable. The solution I found was using the following script to the display the images in sequence: perl -e 'for(glob("*.png *.jpg")){$output = `qiv "$_" 2&#62;&#038;1;`; if($output =~ /Premature/){print $_, "\n";}}' All this does is mix STDERR [...]]]></description>
			<content:encoded><![CDATA[<p>So, I have all these JPEGs, and I want to know which ones are corrupt (specifically, ones that end prematurely).  <a href="http://www.klografx.net/qiv/">qiv</a> will spit out the following to <code>STDERR</code> when it finds one:</p>
<pre><code>
Premature end of JPEG file
</code></pre>
<p>So, this is nice, except it&#8217;s <strong><em>entirely unscriptable</strong></em>.  The solution I found was using the following script to the display the images in sequence:</p>
<pre><code>
perl -e 'for(glob("*.png *.jpg")){$output = `qiv "$_" 2&gt;&#038;1;`; if($output =~ /Premature/){print $_, "\n";}}'
</code></pre>
<p>All this does is mix <code>STDERR</code> with <code>STDOUT</code> for a <code>qiv</code> of the file, and check the output for the word &#8220;Premature&#8221;.  If it finds the word, it prints the filename.  Simple.</p>
<p>The only problem is that <code>qiv</code> doesnt have a way to just check whether a JPEG file is corrupt (and if there is a command line utility that does, please let me know).  To make it go thru the list, I wrote this little gem:</p>
<pre><code>
while(true); do xte "key q"; done
</code></pre>
<p>All this does is send the <code>q</code> key to the Xserver infinitely.  All I have to do is put focus on the first <code>qiv</code> window to make it and all subsequent <code>qiv</code> windows receive q&#8217;s.  So, just run it, and click on the window.  Then there are lots of flashes, and eventually that perl script will print out the names of the bad files.  It&#8217;s totally ghetto, but it&#8217;s the best I&#8217;ve got right now.  The point of this post is to hopefully find new ways to do this more programmatically.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/11/25/finding-bad-jpegs-with-xorg-hacks-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Does Alicia Silverstone love meat?</title>
		<link>http://www.ralree.com/2007/09/21/does-alicia-silverstone-love-meat/</link>
		<comments>http://www.ralree.com/2007/09/21/does-alicia-silverstone-love-meat/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 01:14:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[alcohol]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[celebrities]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[meat]]></category>
		<category><![CDATA[star wars]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/does-alicia-silverstone-love-meat</guid>
		<description><![CDATA[I saw this today, and thought it was hilarious. Basically, this is the main point of the whole thing: So I decided to have some fun. I saw this today, and thought it was hilarious. Basically, this is the main point of the whole thing: So I decided to have some fun. Here are the results: The obvious one This one just couldn&#8217;t help being done. Fun with filters These were all made using The GIMP &#8211; it has some [...]]]></description>
			<content:encoded><![CDATA[<p>I saw <a href="http://www.peta.org/feat/alicia_psa/index.asp">this</a> today, and thought it was hilarious.  Basically, this is the main point of the whole thing:</p>
<p><img src="http://ralree.info/assets/2007/9/21/32665175.jpg" alt=""/></p>
<p>So I decided to have some fun. </p>
<p>            <span id="more-3564"></span></p>
<p>I saw <a href="http://www.peta.org/feat/alicia_psa/index.asp">this</a> today, and thought it was hilarious.  Basically, this is the main point of the whole thing:</p>
<p><img src="http://ralree.info/assets/2007/9/21/32665175.jpg" alt=""/></p>
<p>So I decided to have some fun.  Here are the results:</p>
<h1>The obvious one</h1>
<p><img src="http://ralree.info/assets/2007/9/21/silverstone_meat.jpg" alt=""/></p>
<p>This one just couldn&#8217;t help being done.</p>
<h1>Fun with filters</h1>
<p><img src="http://ralree.info/assets/2007/9/21/silverstone_cold.jpg" alt=""/></p>
<p>These were all made using The GIMP &#8211; it has some pretty cool filters like this one, which is <strong>sparkle</strong>.  I used the hue and saturation tool to get the blue effect.</p>
<h1>AA Meeting, Anyone?</h1>
<p><img src="http://ralree.info/assets/2007/9/21/silverstone_alcoholic.jpg" alt=""/></p>
<p>This probably isn&#8217;t true, but you never know&#8230;</p>
<h1>That&#8217;s Not True!  Thats <strong>IMPOSSIBLE!!</strong></h1>
<p><img src="http://ralree.info/assets/2007/9/21/silverstone_darth.jpg" alt=""/><br />
<img src="http://ralree.info/assets/2007/9/21/Screenshot.png" alt=""/></p>
<h2>Nooooo!!!!!</h2>
<h3><a href="http://ralree.info/assets/2007/9/21/silverstone.xcf">The XCF</a> is available if you want to make your own.</h3>
<p>So, now that that&#8217;s done, time to go do something productive&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/09/21/does-alicia-silverstone-love-meat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting EXIF dates with a loop</title>
		<link>http://www.ralree.com/2007/09/18/setting-exif-dates-with-a-loop/</link>
		<comments>http://www.ralree.com/2007/09/18/setting-exif-dates-with-a-loop/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 00:11:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[exif]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/setting-exif-dates-with-a-loop</guid>
		<description><![CDATA[Magic EXIF recursive tagging! Have you ever had your files all nicely nested in directories, but needed to change their EXIF dates? Here&#8217;s what I used today to do it: # Structure like this: 1997/08/Picture.Whatever Maybe Some Spaces.jpg # Delete the EXIF tags (DONT DO THIS UNLESS YOU KNOW WHAT YOU'RE DOING!) find . -mindepth 3 -exec jhead -de "{}" \; # Make Fresh EXIF tags find . -mindepth 3 -exec jhead -mkexif "{}" \; # Set the dates according [...]]]></description>
			<content:encoded><![CDATA[<h2>Magic EXIF recursive tagging!</h2>
<p>Have you ever had your files all nicely nested in directories, but needed to change their EXIF dates?  Here&#8217;s what I used today to do it:</p>
<pre><code>
# Structure like this: 1997/08/Picture.Whatever Maybe Some Spaces.jpg

# Delete the EXIF tags (DONT DO THIS UNLESS YOU KNOW WHAT YOU'RE DOING!)
find . -mindepth 3 -exec jhead -de "{}" \;

# Make Fresh EXIF tags
find . -mindepth 3 -exec jhead -mkexif "{}" \;

# Set the dates according to the Year and Month information in the filenames
find . -mindepth 3 | perl -ne '@a = split(/\//, $_); chomp($_); print `jhead -da$a[1]:$a[2]:01-2007:09:17 "$_"`, "\n"'
</code></pre>
<p>This worked wonderfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/09/18/setting-exif-dates-with-a-loop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

