Image magick (windows) - 如何对文件夹中的多个图像类型执行批量调整大小?

Image magick (windows) - How do I perform batch resizing for several images type in a folder?

如何对一个文件夹中的许多图像执行批量调整大小?

例如我在文件夹 C:\tried 中有 4 张图片

image1.jpeg
image2.png
image3.bmp
image4.tiff

我想

 1. convert them to JPG
 2. resize them to 575px
 3. lower the quality of each image to 90%
 4. move them into different folder
 5. delete every picture that converted

我可以在 Windows 中使用批处理文件 (*.bat) 执行此操作吗?

从数字 1 开始,

Stack Overflow 上有很多示例:

magick mogrify -path OUTPUTDIRECTORY -format JPEG -resize 575 -quality 90 *.tif *.jpg *.bmp

你必须自己删除它们。