Page 1 of 1

request string format for type

Posted: 2012-06-20T17:05:54-07:00
by fmw42
When convenient, would it be possible to add a string format %[type] to http://www.imagemagick.org/script/escape.php so that one can easily get the image type ( as in convert -list type ).


Bilevel
ColorSeparation
ColorSeparationAlpha
ColorSeparationMatte
Grayscale
GrayscaleAlpha
GrayscaleMatte
Optimize
Palette
PaletteBilevelAlpha
PaletteBilevelMatte
PaletteAlpha
PaletteMatte
TrueColorAlpha
TrueColorMatte
TrueColor


Curious also, but should there not be a type bilevelmatte? It is not listed or is it covered by PaletteBilevelAlpha and PaletteBilevelMatte

Re: request string format for type

Posted: 2012-06-20T17:49:11-07:00
by magick
Done.

Re: request string format for type

Posted: 2012-06-20T23:16:02-07:00
by anthony
It was not added to IMv7! :-)

Code: Select all

magick rose: -print '%[type]\n' null:
magick: unknown image property "%[type]" @ warning/property.c/InterpretImageProperties/3263.
Note Imv6 does not report this type of error, that is a IMv7 feature I added.

Re: request string format for type

Posted: 2012-06-21T04:05:33-07:00
by magick
Could be a version skew. It works for us:
  • magick rose: -print '%[type]\n' null:
    TrueColor