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 »

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: 12159
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 »

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 »

Thank you that's exactly what I wanted.
Post Reply