Page 1 of 1

Convert image into all known/available formats/extensions

Posted: 2019-09-13T06:38:22-07:00
by hewittmatthew
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.

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

Posted: 2019-09-13T07:18:30-07:00
by snibgo
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.