<?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"
	>
<channel>
	<title>Comments on: 批量创建缩略图</title>
	<atom:link href="http://linuxtoy.org/archives/batch_create_thumbnail.html/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxtoy.org/archives/batch_create_thumbnail.html</link>
	<description>LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神，可以点击顶部导航 Contact 按钮进行投稿。</description>
	<pubDate>Tue, 06 Jan 2009 14:02:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: alex</title>
		<link>http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1927</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Sat, 11 Nov 2006 07:54:39 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1927</guid>
		<description>sorry, ｉused it not properly. so ,go ahead. it is really a wonderful way to create thumbnails. thanks,toy and coocend</description>
		<content:encoded><![CDATA[<p>sorry, ｉused it not properly. so ,go ahead. it is really a wonderful way to create thumbnails. thanks,toy and coocend</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1925</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Sat, 11 Nov 2006 07:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1925</guid>
		<description>ATTENTION :　　it will overwrite the original ones!</description>
		<content:encoded><![CDATA[<p>ATTENTION :　　it will overwrite the original ones!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toy</title>
		<link>http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1286</link>
		<dc:creator>Toy</dc:creator>
		<pubDate>Sat, 28 Oct 2006 07:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1286</guid>
		<description>太好了，这个增强版将更加好用。非常感谢 coocend 朋友。</description>
		<content:encoded><![CDATA[<p>太好了，这个增强版将更加好用。非常感谢 coocend 朋友。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coocend</title>
		<link>http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1285</link>
		<dc:creator>coocend</dc:creator>
		<pubDate>Sat, 28 Oct 2006 05:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/archives/batch_create_thumbnail.html#comment-1285</guid>
		<description>shell script可以接受命令行参数，稍微修改下将更方便。
下面这个可以指定一个类型进行转换，默认转换全部jpg bmp gif 式的
ps:看livid的blog来这里的，界面很舒服，喜欢。
-------------
&lt;code&gt;#!/bin/bash
if [ $# -lt 1 ]
then
  for ext in jpg bmp gif
  do
    for file in *.$ext
    do
      if [ -r $file ]
      then 
        convert -resize 200 "$file" thumb_"$file"
      fi
    done
  done
else
  for file in *.$1
  do
    if [ -r $file ]
    then
    convert -resize 200 "$file" thumb_"$file"
    fi
  done
fi&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>shell script可以接受命令行参数，稍微修改下将更方便。<br />
下面这个可以指定一个类型进行转换，默认转换全部jpg bmp gif 式的<br />
ps:看livid的blog来这里的，界面很舒服，喜欢。<br />
&#8212;&#8212;&#8212;&#8212;-<br />
<code>#!/bin/bash<br />
if [ $# -lt 1 ]<br />
then<br />
  for ext in jpg bmp gif<br />
  do<br />
    for file in *.$ext<br />
    do<br />
      if [ -r $file ]<br />
      then<br />
        convert -resize 200 &#8220;$file&#8221; thumb_&#8221;$file&#8221;<br />
      fi<br />
    done<br />
  done<br />
else<br />
  for file in *.$1<br />
  do<br />
    if [ -r $file ]<br />
    then<br />
    convert -resize 200 &#8220;$file&#8221; thumb_&#8221;$file&#8221;<br />
    fi<br />
  done<br />
fi</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
