Page 1 of 1

Is it possible to pass a directory or batch out multiple files over CLI?

Posted: 2019-05-14T13:20:28-07:00
by i73
I'm testing the metrics of a decode operation using IM and another decoder format, I need to keep the overhead of a CLI operation as minimal as possible so I'm looking for a way to decode a folder of .webp images to .png while only calling convert once.

Re: Is it possible to pass a directory or batch out multiple files over CLI?

Posted: 2019-05-14T13:41:10-07:00
by snibgo
I suggest something like:

Code: Select all

magick mogrify -format png *.webp

Re: Is it possible to pass a directory or batch out multiple files over CLI?

Posted: 2019-05-14T14:06:40-07:00
by i73
Thank you that's exactly what I wanted.