<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Automatic Image-Chopper?</title>
	<link>http://ask.metafilter.com/23491/Automatic-ImageChopper/</link>
	<description>Comments on Ask MetaFilter post Automatic Image-Chopper?</description>
	<pubDate>Thu, 01 Sep 2005 14:14:12 -0800</pubDate>
	<lastBuildDate>Thu, 01 Sep 2005 14:14:12 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Automatic Image-Chopper?</title>
		<link>http://ask.metafilter.com/23491/Automatic-ImageChopper</link>	
		<description>I need an automated way to slice &apos;n&apos; dice some images into regularly sized chunks. &lt;br /&gt;&lt;br /&gt; Here&apos;s the deal: I&apos;m making a mosaic-style sidebar for a website I&apos;m working on. There are 6x7 squares arranged sorta like a calendar, with each square cell being about 20px to a side.&lt;br&gt;
&lt;br&gt;
I want the background of each square to be 20px. square chunk of a larger image, such that it looks like a mosaic when assembled together. To do this, I need a program that will automate the process of getting 42 20px^2 chunks out of every image I use. It would need to do these things, in order:&lt;br&gt;
&lt;br&gt;
1) Resize the input image to the proper size.&lt;br&gt;
&lt;br&gt;
2) Select the first 20px^2 region (from the top left, natch)&lt;br&gt;
&lt;br&gt;
3) Save it with some regular naming scheme (e.g. &lt;i&gt;n&lt;/i&gt;+1.jpg)&lt;br&gt;
&lt;br&gt;
4) Grab the next 20px^2 region (to the right), do the same thing.&lt;br&gt;
&lt;br&gt;
5) Repeat until the region #42 is grabbed and saved.&lt;br&gt;
&lt;br&gt;
Is there any freeware program to do this? Barring that, some sort of batch file I could write? I could do the whole project by hand, but it would be mind-numbing. I&apos;ve got Paintshop at my direct disposal, and could get to a copy of Photoshop, Illustrator, etc. if necessary. Thanks!</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.23491</guid>
		<pubDate>Thu, 01 Sep 2005 13:42:47 -0800</pubDate>
		<dc:creator>electric_counterpoint</dc:creator>
		
			<category>Image</category>
		
			<category>size</category>
		
			<category>automate</category>
		
			<category>batch</category>
		
	</item> <item>
		<title>By: Wolfdog</title>
		<link>http://ask.metafilter.com/23491/Automatic-ImageChopper#374027</link>	
		<description>&lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot;&gt;ImageMagick&lt;/a&gt; can do this.  One command (resize) to resize and one command (crop) to generate all the tiles.&lt;tt&gt;&lt;br&gt;
convert -resize 140x120 myoriginal.jpg mynew.jpg&lt;br&gt;
convert -crop 20x20 mynew.jpg mytiles.jpg&lt;br&gt;
&lt;/tt&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.23491-374027</guid>
		<pubDate>Thu, 01 Sep 2005 14:14:12 -0800</pubDate>
		<dc:creator>Wolfdog</dc:creator>
	</item><item>
		<title>By: ph00dz</title>
		<link>http://ask.metafilter.com/23491/Automatic-ImageChopper#374029</link>	
		<description>What platform are you on? It seems to me that you could probably do exactly what you want with a bit of PHP and GD, but that may or may not be beyond the scope of what you wanna do...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.23491-374029</guid>
		<pubDate>Thu, 01 Sep 2005 14:14:26 -0800</pubDate>
		<dc:creator>ph00dz</dc:creator>
	</item><item>
		<title>By: fake</title>
		<link>http://ask.metafilter.com/23491/Automatic-ImageChopper#374031</link>	
		<description>Have a look at the &lt;a href=&quot;http://www.mediacollege.com/graphics/photoshop/tool/slice.html&quot;&gt;Photoshop Slice tool.&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.23491-374031</guid>
		<pubDate>Thu, 01 Sep 2005 14:15:08 -0800</pubDate>
		<dc:creator>fake</dc:creator>
	</item><item>
		<title>By: fake</title>
		<link>http://ask.metafilter.com/23491/Automatic-ImageChopper#374033</link>	
		<description>Just to be clear, you&apos;d just make a grid of slices and choose &quot;Save for web&quot;.... it does almost everything else you want. It will even make a table.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.23491-374033</guid>
		<pubDate>Thu, 01 Sep 2005 14:15:48 -0800</pubDate>
		<dc:creator>fake</dc:creator>
	</item><item>
		<title>By: fleacircus</title>
		<link>http://ask.metafilter.com/23491/Automatic-ImageChopper#374041</link>	
		<description>Have you thought instead about loading up the entire image, then using the CSS background-position style to change the 20x20 area for each tile?&lt;br&gt;
&lt;br&gt;
This would probably load faster than 42 separate images anyway, but it won&apos;t take care of your step (1).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.23491-374041</guid>
		<pubDate>Thu, 01 Sep 2005 14:22:11 -0800</pubDate>
		<dc:creator>fleacircus</dc:creator>
	</item><item>
		<title>By: Wolfdog</title>
		<link>http://ask.metafilter.com/23491/Automatic-ImageChopper#374046</link>	
		<description>(BTW: ImageMagick is available for Windows and Unix - including Darwin - and what you&apos;ll get out of that pair of commands is a bunch of files named mytiles.jpg.0, mytiles.jpg.1, ..., mytiles.jpg.4)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.23491-374046</guid>
		<pubDate>Thu, 01 Sep 2005 14:25:33 -0800</pubDate>
		<dc:creator>Wolfdog</dc:creator>
	</item>
	</channel>
</rss>
