<?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: 批量创建缩略图</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>
	<lastBuildDate>Tue, 22 May 2012 09:40:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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>&lt;p&gt;sorry, ｉused it not properly. so ,go ahead. it is really a wonderful way to create thumbnails. thanks,toy and coocend&lt;/p&gt;
</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>&lt;p&gt;ATTENTION :　　it will overwrite the original ones!&lt;/p&gt;
</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>&lt;p&gt;太好了，这个增强版将更加好用。非常感谢 coocend 朋友。&lt;/p&gt;
</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></description>
		<content:encoded><![CDATA[<p>shell script可以接受命令行参数，稍微修改下将更方便。
下面这个可以指定一个类型进行转换，默认转换全部jpg bmp gif 式的</p>

<h2>ps:看livid的blog来这里的，界面很舒服，喜欢。</h2>

<p><code>#!/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</code></p>]]></content:encoded>
	</item>
</channel>
</rss>

