我希望能夠在哪裏掃描以及轉換後的文件將在哪裏指定位置。在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