png convert to gif script

本来要用gda,,结果发现gdal不支持多波段转换。
只好使用Imagemagick,先安装:
apt-get install imagemagick
脚本内容:

#!/bins/sh
for i in *.gif; do
echo “convert $i to ${i%.png}.gif….”;
convert $i ${i%.png}.gif ;
done
exit 1;

This entry was posted in Linux and tagged , , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string 44M26B to the field below:

以新浪微博帐号登录