Convert image into all known/available formats/extensions

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
Posts: 1
Joined: 2019-09-13T06:28:12-07:00
Authentication code: 1152

Convert image into all known/available formats/extensions

Post by hewittmatthew » 2019-09-13T06:38:22-07:00

I'm looking to produce a set of sample images to use with an image library our software implements.

I know I can convert using explicit commands, but wondered if anyone had written a scripted solution that would iterate through all available output/conversion formats?

Longer term i'd probably want to vary some common options, such as colour space, compression levels etc, and name the files output accordingly.

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

Re: Convert image into all known/available formats/extensions

Post by snibgo » 2019-09-13T07:18:30-07:00

What version of IM on what platform?

I often loop through colorspaces, to compare results of an algorithm using different colorspaces. This is easy as "magick -list colorspace" has a simple output format. "magick -list format" has a slightly messy format, and you want just those formats that IM can write.
snibgo's IM pages:

Post Reply