Page 1 of 1

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

Posted: 2007-09-28T14:36:07-07:00
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.

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

Posted: 2007-09-28T15:14:09-07:00
by magick
Type

identify -list format

to get a list of image formats and their tags.

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

Posted: 2007-10-05T07:09:22-07:00
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 ?