小编Max*_*x N的帖子

如何使用imagemagick旋转目录中的所有图像?

我想旋转与模式匹配的目录中的所有图像。

到目前为止,我有:

for file in `ls /tmp/p/DSC*.JPG`; do
  convert $file -rotate 90 file+'_rotated'.JPG
done
Run Code Online (Sandbox Code Playgroud)

但这没有输出?

shell-script imagemagick image-manipulation wildcards

21
推荐指数
5
解决办法
3万
查看次数