我希望能够在哪里扫描以及转换后的文件将在哪里指定位置。在Imagemagick for linux中如何对目录进行批量转换
这只是有很多的转换,我有一个脚本,应该为我排序。 目前我已经试过
convert -resize 300x300 > /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/normal/*.jpg /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/tn_med/$1.jpg
和
for i in $(ls /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/normal); do /usr/convert resize 360x360 > /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/normal/$i /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/tn_med/$i done;
您是否尝试过寻找到Linux'find'命令?特别是'-exec'选项? – ircmaxell 2010-08-19 14:36:49