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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

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

Post by i73 » 2019-05-14T13:20:28-07:00

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.

snibgo
Posts: 11815
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo » 2019-05-14T13:41:10-07:00

I suggest something like:

Code: Select all

magick mogrify -format png *.webp
snibgo's IM pages: im.snibgo.com

i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

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

Post by i73 » 2019-05-14T14:06:40-07:00

Thank you that's exactly what I wanted.

Post Reply