我希望能够指定扫描位置和转换文件的位置。
只是有很多转换,我有一个脚本可以帮我排序。 目前我已经尝试过
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;
最佳答案
for i in $( ls /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/normal); do
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
知道了!
关于php - 在 Imagemagick for linux 中,如何对目录进行批量转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3522820/