Header Information

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
AndyB

Header Information

Post by AndyB »

Hello,

Is it possible to just load header information from an image file? For example we're after a way of reading the dimensions, bit depth and number of unique colours of an image without loading the entire file. We're using the C++ API.

Thanks in advance.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Header Information

Post by el_supremo »

The "ping" method will give you the dimensions and filesize without reading the image data. But it doesn't give you the bit depth or number of unique colours. I don't know if there's a way in IM to get them without reading the image.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
AndyB

Re: Header Information

Post by AndyB »

The ping function is a starting point. Thanks for the help.
Post Reply