How do we find out if a ICO file contains multi resolution?

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
Cat
Posts: 2
Joined: 2012-09-28T08:01:07-07:00
Authentication code: 67789

How do we find out if a ICO file contains multi resolution?

Post by Cat »

I am using the 'GetConvertedImage', passing in an ICO file containing multi resolution and the function does not return and fails silently. Is there a way I could query the image Information to detect whether or not the ICO contains one or multiple ICO?
Also tried getting image Information and trying to get MagickException error code but didn't return from that function call, my application failed silently (using GetMagick.GetImageInformation(strImagePath, exMagick);)
Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do we find out if a ICO file contains multi resoluti

Post by fmw42 »

I do not know any of the APIs or ICO file structure, but I would expect that identify should list out each resolution.

You might also check http://www.imagemagick.org/script/escape.php for "%s"
Post Reply