<?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>Daily Grind &#187; python</title>
	<atom:link href="http://www.simond.net/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simond.net</link>
	<description>Wonderings, wanderings and waffle</description>
	<lastBuildDate>Wed, 31 Aug 2011 17:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Collage of Images</title>
		<link>http://www.simond.net/2009/06/11/collage-of-images/</link>
		<comments>http://www.simond.net/2009/06/11/collage-of-images/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 16:48:55 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[pictures]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.simond.net/?p=764</guid>
		<description><![CDATA[I wrote a Python script to turn all the images, in a directory, into one big collage image. The white bands are annoying &#8211; due to thumbnail size and most of my images being rectangular and not square (have since &#8230; <a href="http://www.simond.net/2009/06/11/collage-of-images/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I wrote a <a href="http://www.simond.net/files/collage.py">Python script</a> to turn all the images, in a directory, into one big collage image. The white bands are annoying &#8211; due to thumbnail size and most of my images being rectangular and not square (<em>have since solved that problem</em>). Here is the result of my photos from 2007 to now: <a href="http://www.simond.net/images/collage.png">view</a>. It&#8217;s a 1MB file of about 1800 images.</p>
<p>Here&#8217;s another (with my code modifications done): <a href="http://www.simond.net/images/iphone_back.png">view</a>.</p>
<p>Feel free to critique my programming; it&#8217;s only my second Python script. There&#8217;s limited error-handling.</p>
<p>Here&#8217;s a handy one-liner (Mac OSX for me) to get all your images into one directory (I couldn&#8217;t be bothered to do recursion in my Python script):</p>
<p><code>find
<path to search> -iname "*.JPG" -print0 | xargs -0 -J% cp -i % <destination directory></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simond.net/2009/06/11/collage-of-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

