Page 1 of 1

Header Information

Posted: 2010-11-01T09:18:06-07:00
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.

Re: Header Information

Posted: 2010-11-01T15:17:54-07:00
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

Re: Header Information

Posted: 2010-11-02T02:40:27-07:00
by AndyB
The ping function is a starting point. Thanks for the help.