request string format for type

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

request string format for type

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: request string format for type

Post by magick »

Done.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: request string format for type

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: request string format for type

Post by magick »

Could be a version skew. It works for us:
  • magick rose: -print '%[type]\n' null:
    TrueColor
Post Reply