<?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>John Brier &#187; linux bash</title>
	<atom:link href="http://cupcakecarnival.net/index.php/tag/linux-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://cupcakecarnival.net</link>
	<description>the small home of John Brier</description>
	<lastBuildDate>Tue, 24 Aug 2010 14:32:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to resize images in batch using ImageMagick and bash</title>
		<link>http://cupcakecarnival.net/index.php/2009/11/20/how-to-resize-images-in-batch-using-imagemagick-and-bash/</link>
		<comments>http://cupcakecarnival.net/index.php/2009/11/20/how-to-resize-images-in-batch-using-imagemagick-and-bash/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 05:33:00 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux bash]]></category>

		<guid isPermaLink="false">http://cupcakecarnival.net/?p=162</guid>
		<description><![CDATA[I have taken a lot of pictures while I have been in Australia. In order to save time and bandwidth when I upload them to my site I have been resizing them to 800&#215;600 from their normal 2536&#215;1536 resolution. This reduces size per image from 1.4 MB to ~200 KB.
To do this if your images [...]]]></description>
			<content:encoded><![CDATA[<p>I have taken a lot of pictures while I have been in Australia. In order to save time and bandwidth when I upload them to my site I have been resizing them to 800&#215;600 from their normal 2536&#215;1536 resolution. This reduces size per image from 1.4 MB to ~200 KB.</p>
<p>To do this if your images are in ~/Pictures and you want to put the resized images in ~/Pictures/resized you can use a simple for loop like the following with the &#8216;convert&#8217; command from the ImageMagick suite</p>
<p>Assuming you are already in ~/Pictures/ run the following:</p>
<p><strong><em>for i in `ls *.jpg | xargs`; do convert $i -resize 800&#215;600 ~/Pictures/resized/$i-resized.jpg; done;</em></strong></p>
<p>If your original file was named original.jpg it will now be named original.jpg-resized.jpg</p>
<p>There is probably a way to make that output file name cleaner but I haven&#8217;t looked into it yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://cupcakecarnival.net/index.php/2009/11/20/how-to-resize-images-in-batch-using-imagemagick-and-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
