Magick++ Image::magick() image format strings

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
eldiener

Magick++ Image::magick() image format strings

Post by eldiener »

I am using Magick++ and need to determine if an image is of a certain kind. I noticed the Image::magick() function which returns a string indicating the image type for a particular image. What are the possible strings which could be returned and what is the image type for each of these strings ?

I need to check whether my image is a Jpeg image, so I am guessing that the returned string for a Jpeg image would be "JPG" or "JPEG" but it sure would be nice to know what all of the possible returned strings are.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Magick++ Image::magick() image format strings

Post by magick »

Type

identify -list format

to get a list of image formats and their tags.
eldiener

Re: Magick++ Image::magick() image format strings

Post by eldiener »

magick wrote:Type

identify -list format

to get a list of image formats and their tags.
I did this and I see the list. I have two questions about the list.

The first question is the asterisk ( * ) listed after a format name. What does the asterisk mean ?

The second question regards the module name. Does the module name correspond to IM_MOD... shared libraries distributed with ImageMagick or built from ImageMagick source ? If so, there are module names in the format list which do not have any IM _MOD... equivalent in the source which I have built. Why is that ?
Post Reply