<?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>drop.by &#187; upload</title>
	<atom:link href="http://drop.by/tag/upload/feed" rel="self" type="application/rss+xml" />
	<link>http://drop.by</link>
	<description>Just another weblog</description>
	<lastBuildDate>Tue, 10 Aug 2010 19:22:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Preparing photos for Facebook upload</title>
		<link>http://drop.by/preparing-photos-for-facebook</link>
		<comments>http://drop.by/preparing-photos-for-facebook#comments</comments>
		<pubDate>Sat, 17 Oct 2009 15:23:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[exif]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[preprocessing]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://drop.by/blog/?p=73</guid>
		<description><![CDATA[A few tips for using Facebook and/or other services. Shows a way to correctly order photos from different sources (2 cameras -> 1 album) and how to remove potentially private data.]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><strong>Update:</strong> Improved version in a <a href="/photo-script">new post</a> of mine.</p>
<p style="text-align: left;">A few tips for using Facebook and/or other services. You will need <a title="Free software, most operating systems supported" href="http://www.imagemagick.org/">ImageMagick</a> and linux or <a title="Linux-like environment for Windows" href="http://www.cygwin.com/">Cygwin</a>.</p>
<p style="text-align: left;"><strong>Order images correctly</strong></p>
<p style="text-align: left;"><strong> </strong>Copying images to your computer, or rotating them, may ruin the files&#8217; time (of last modification). If your album contains images from several cameras, the file names can&#8217;t be used to sort the images either. The following command renames the files to the second they were taken (see <a title="Exchangeable image file format (metadata in jpg)" href="http://en.wikipedia.org/wiki/Exif">Exif</a>).</p>
<p style="text-align: left;"><code><span title="&quot;c&quot; ensures names are unique">c=0;for i in *.jpg;do t=`identify -verbose $i |egrep 'Exif:DateTime:'|sed 's/[^0-9]//g'`; mv $i "$t-$c.jpg";c=$[ $c + 1 ];echo $i;done</span></code></p>
<p style="text-align: left;"><strong>Remove excess information</strong></p>
<p style="text-align: left;">Be sure you don&#8217;t share <a title="Why you should remove metadata" href="http://netzreport.googlepages.com/hidden_data_in_jpeg_files.html">more than you mean to</a>! Also, saves you a couple of bytes to upload. (Copy files to a new folder first.)</p>
<p style="text-align: left;"><code>for i in *.jpg;do mogrify <span title="Removes Exif data">-strip</span> <span title="Aspect ratio is preserved, max width/height is 604">-resize 604x604</span> $i;echo $i;done</code></p>
<p style="text-align: left;">Of course, for some services, keeping the metadata could be useful.</p>
<p style="text-align: left;"><strong>Anonymize file names</strong></p>
<p style="text-align: left;">Finally, you may want to rename the album file names:</p>
<p style="text-align: left;"><code>c=0;for i in *.jpg;do f=`<span title="0000,0001,0002,...">printf "%04u" "$c"</span>`;mv $i $f.jpg;c=$[ $c + 1 ];done</code></p>
]]></content:encoded>
			<wfw:commentRss>http://drop.by/preparing-photos-for-facebook/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
