2004.12.11 19:12 "[Tiff] Q : palettes", by Chris Losinger

2004.12.11 19:57 "Re: [Tiff] Q : palettes", by Frank Warmerdam

what's the proper way to handle an 8bpp TIFF that has photometric = PHOTOMETRIC_MINISWHITE, and a valid palette?

does the photometric setting override the palette (ignore the image palette, use an inverted grayscale palette), or the other way around?

Chris,

I believe such a file would be out-of-spec, and so there isn't a well defined correct way of handling it. However, I would take the approach of ignoring the photometric interpretation and using the palette in such a case.

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent