<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: No batch processor?</title>
	<atom:link href="http://archlinux.me/emallson/2009/05/28/no-batch-processor/feed/" rel="self" type="application/rss+xml" />
	<link>http://archlinux.me/emallson/2009/05/28/no-batch-processor/</link>
	<description>Never Stop Moving. Never Stop Learning.</description>
	<lastBuildDate>Tue, 03 Aug 2010 15:20:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: emallson</title>
		<link>http://archlinux.me/emallson/2009/05/28/no-batch-processor/#comment-8</link>
		<dc:creator>emallson</dc:creator>
		<pubDate>Fri, 29 May 2009 21:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/emallson/?p=37#comment-8</guid>
		<description><![CDATA[Windows is for people who want to keep a bunch of Peons busy...
Linux is for people who want to squeeze the maximum performance out of said Peons...]]></description>
		<content:encoded><![CDATA[<p>Windows is for people who want to keep a bunch of Peons busy&#8230;<br />
Linux is for people who want to squeeze the maximum performance out of said Peons&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crouse</title>
		<link>http://archlinux.me/emallson/2009/05/28/no-batch-processor/#comment-7</link>
		<dc:creator>crouse</dc:creator>
		<pubDate>Fri, 29 May 2009 18:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/emallson/?p=37#comment-7</guid>
		<description><![CDATA[eh........ nm, that was for fireworks :)
Man, I&quot;m glad I don&#039;t use windows :D :D :D]]></description>
		<content:encoded><![CDATA[<p>eh&#8230;&#8230;.. nm, that was for fireworks <img src='http://archlinux.me/emallson/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Man, I&#8221;m glad I don&#8217;t use windows <img src='http://archlinux.me/emallson/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  <img src='http://archlinux.me/emallson/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  <img src='http://archlinux.me/emallson/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crouse</title>
		<link>http://archlinux.me/emallson/2009/05/28/no-batch-processor/#comment-6</link>
		<dc:creator>crouse</dc:creator>
		<pubDate>Fri, 29 May 2009 18:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/emallson/?p=37#comment-6</guid>
		<description><![CDATA[http://help.adobe.com/en_US/Fireworks/9.0/help.html?content=frw_automating_au_09.html

maybe ??? I&#039;m not a windows guy lol :)]]></description>
		<content:encoded><![CDATA[<p><a href="http://help.adobe.com/en_US/Fireworks/9.0/help.html?content=frw_automating_au_09.html" rel="nofollow">http://help.adobe.com/en_US/Fireworks/9.0/help.html?content=frw_automating_au_09.html</a></p>
<p>maybe ??? I&#8217;m not a windows guy lol <img src='http://archlinux.me/emallson/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emallson</title>
		<link>http://archlinux.me/emallson/2009/05/28/no-batch-processor/#comment-5</link>
		<dc:creator>emallson</dc:creator>
		<pubDate>Fri, 29 May 2009 17:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/emallson/?p=37#comment-5</guid>
		<description><![CDATA[I would&#039;ve used a script like that, but no bash. So I was going to use perl, only to realize that it cant use .ai (Adobe Illustrator) files. Yuck...so I&#039;ve done about half of them now.]]></description>
		<content:encoded><![CDATA[<p>I would&#8217;ve used a script like that, but no bash. So I was going to use perl, only to realize that it cant use .ai (Adobe Illustrator) files. Yuck&#8230;so I&#8217;ve done about half of them now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crouse</title>
		<link>http://archlinux.me/emallson/2009/05/28/no-batch-processor/#comment-4</link>
		<dc:creator>crouse</dc:creator>
		<pubDate>Fri, 29 May 2009 03:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/emallson/?p=37#comment-4</guid>
		<description><![CDATA[NOTE: Probably should make COPIES of what you want to run that script on, as the script modifies the images directly!! Everyone has been warned !! :)

Also, you can modify the lines at the bottom to use/converto other formats besides .jpg, any image format that imagemagick can manipulate could be used here..... so it&#039;s possible to say resize all .pngs and convert them to something other than png as well.]]></description>
		<content:encoded><![CDATA[<p>NOTE: Probably should make COPIES of what you want to run that script on, as the script modifies the images directly!! Everyone has been warned !! <img src='http://archlinux.me/emallson/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also, you can modify the lines at the bottom to use/converto other formats besides .jpg, any image format that imagemagick can manipulate could be used here&#8230;.. so it&#8217;s possible to say resize all .pngs and convert them to something other than png as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crouse</title>
		<link>http://archlinux.me/emallson/2009/05/28/no-batch-processor/#comment-3</link>
		<dc:creator>crouse</dc:creator>
		<pubDate>Fri, 29 May 2009 03:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/emallson/?p=37#comment-3</guid>
		<description><![CDATA[tsk tsk tsk ........ windows....... yuck...... ;)

You &quot;could&quot; do this with Arch Linux very easily, in fact, I wrote a script to do almost exactly that. bbresize (more batch image processing scripts that I wrote are on bashscripts.org)

&lt;pre lang=&quot;Bash&quot;&gt;
#!/bin/bash
# FILE : bbresize
# Function: Resizes all .jpg images in a directory.
# Copyright (C) 2006-2009 Dave Crouse
# ------------------------------------------------------------------------ #
if [[ -z $( type -p convert ) ]]; then echo -e &quot;ImageMagick -- NOT INSTALLED !&quot;;exit ;fi

if [[ $1 = &quot;--help&quot; &#124;&#124; $1 = &quot;-h&quot; &#124;&#124; $1 = &quot;help&quot; ]]; then
        echo &quot;          Function: Resizes all .jpg images in a directory.&quot;;
        echo &quot;          Usage: $0 width height&quot;;
        echo &quot;          Requires: Imagemagick&quot;;
        echo &quot;          EXAMPLE: $0 400 400&quot;;
        echo &quot;          Note: width and height variables MUST be numeric ! &quot;;
        echo &quot;          In the example 400 400 creates images with a maximum width of 400 and maximum height of 400.&quot;;
        echo &quot;          &quot;;
        echo &quot;          Comments/Suggestions/Bugfixes to &quot;;
        echo &quot;          USA Linux Users Group - http://usalug.org&quot;;
        echo &quot;          &quot;;
exit 0
fi

if [[ -z &quot;$2&quot; &#124;&#124; $1 = *[^0-9]* &#124;&#124; $2 = *[^0-9]* ]] ; then
        echo &quot; &quot;;
        echo &quot;          ######### COMMAND FAILED ########## &quot;;
        echo &quot;          USAGE: $0 width height&quot;;
        echo &quot;          EXAMPLE: $0 400 400&quot;;
        echo &quot;          Note: width and height variables MUST be numeric ! &quot;;
        echo &quot;          In the example 400 400 creates images with a maximum width of 400 and maximum height of 400.&quot;;
        echo &quot;          ######### COMMAND FAILED ########## &quot;;echo &quot; &quot;;
else

export IFS=$&#039;\n&#039;;
for i in $(find . -maxdepth 1 -type f -iname &quot;*.jpg&quot;);
do
echo &quot;Resizing ${i:2} to $1 x $2&quot;;convert ${i:2} -resize $1\x$2 new_${i:2}; mv new_${i:2} ${i:2} ;
done
fi
exit 0
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>tsk tsk tsk &#8230;&#8230;.. windows&#8230;&#8230;. yuck&#8230;&#8230; <img src='http://archlinux.me/emallson/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>You &#8220;could&#8221; do this with Arch Linux very easily, in fact, I wrote a script to do almost exactly that. bbresize (more batch image processing scripts that I wrote are on bashscripts.org)</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># FILE : bbresize</span>
<span style="color: #666666; font-style: italic;"># Function: Resizes all .jpg images in a directory.</span>
<span style="color: #666666; font-style: italic;"># Copyright (C) 2006-2009 Dave Crouse</span>
<span style="color: #666666; font-style: italic;"># ------------------------------------------------------------------------ #</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #7a0874; font-weight: bold;">type</span> <span style="color: #660033;">-p</span> convert <span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;ImageMagick -- NOT INSTALLED !&quot;</span>;<span style="color: #7a0874; font-weight: bold;">exit</span> ;<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$1</span> = <span style="color: #ff0000;">&quot;--help&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$1</span> = <span style="color: #ff0000;">&quot;-h&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$1</span> = <span style="color: #ff0000;">&quot;help&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          Function: Resizes all .jpg images in a directory.&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          Usage: $0 width height&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          Requires: Imagemagick&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          EXAMPLE: $0 400 400&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          Note: width and height variables MUST be numeric ! &quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          In the example 400 400 creates images with a maximum width of 400 and maximum height of 400.&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          &quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          Comments/Suggestions/Bugfixes to &quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          USA Linux Users Group - http://usalug.org&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          &quot;</span>;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$2&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$1</span> = <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>^<span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$2</span> = <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>^<span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          ######### COMMAND FAILED ########## &quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          USAGE: $0 width height&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          EXAMPLE: $0 400 400&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          Note: width and height variables MUST be numeric ! &quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          In the example 400 400 creates images with a maximum width of 400 and maximum height of 400.&quot;</span>;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          ######### COMMAND FAILED ########## &quot;</span>;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span>;
<span style="color: #000000; font-weight: bold;">else</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">IFS</span>=$<span style="color: #ff0000;">'\n'</span>;
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-maxdepth</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-type</span> f <span style="color: #660033;">-iname</span> <span style="color: #ff0000;">&quot;*.jpg&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Resizing <span style="color: #007800;">${i:2}</span> to $1 x $2&quot;</span>;convert <span style="color: #800000;">${i:2}</span> <span style="color: #660033;">-resize</span> <span style="color: #007800;">$1</span>\x<span style="color: #007800;">$2</span> new_<span style="color: #800000;">${i:2}</span>; <span style="color: #c20cb9; font-weight: bold;">mv</span> new_<span style="color: #800000;">${i:2}</span> <span style="color: #800000;">${i:2}</span> ;
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
</channel>
</rss>
