[magick-users] Gathering image state

Thompson, Tom Tom.Thompson at disney.com
Wed Apr 3 17:18:37 PST 2002


I am probably missing something, but is there no way to gather the image
state without actually loading the image? I see the PingImage method, but
that only gives me access to the width, height and type. 

What I want is to be able to return the following without loading the
image:

	File Name:        luma16.tif
	File Format:      TIFF Image (tif)
	Dimensions:       400 x 300
	Channels:         2
	Color Model:      Luminance-Alpha
	Data Type:        16bit Integer

or more standard would be:

	File Name:        rgba16.sgi
	File Format:      Classic SGI Image (sgi)
	Dimensions:       640 x 486
	Channels:         4
	Color Model:      RGBA
	Data Type:        16bit Integer

The missing piece is really the "color model". I am having trouble getting
this bit of information even if the image _is_ loaded. I can tell if the
image is grayscale, but the image on disk might have been RGB with all
channels equal. See my problem? I want to know what the format/state of the
disk image is, not what it ~can~ minimally be.

thanks.


tom.



More information about the Magick-users mailing list