TIFF and LibTiff Mail List Archive


2005.01.20 07:19 "[Tiff] 8 bits per sample", by Frans Dames
2005.01.21 21:13 "Re: [Tiff] 8 bits per sample", by Frank Warmerdam

2005.01.21 21:13 "Re: [Tiff] 8 bits per sample", by Frank Warmerdam

On Thu, 20 Jan 2005 09:19:59 +0200, Frans Dames <> wrote:

I am extracting tif data 8 bits/sample colour pixels.

It seems that each pixel contains 8bits of colour information.

If I open the tif in Paintshop Pro I can see that it consist of a 256 colour


How do n convert this to a 24 bit RGB value for display?


You can use the tiff2rgba command line utiilty which actually writes a 32bit (Red, green, blue, alpha) TIFF file. Use the -n flag if you don't want it emitting alpha values.

Programmatically you an use the TIFFReadRGBAImage() function.


Disclaimer: The information contained in this communication is confidential and may be legally privileged.

I have no doubt this disclaimer is forced on you by legal "suits" in your organization, but frankly it is ludicrious to think that your communication to a public mailing list could remain in anyway legally confidential. For that matter, if you email me personally, and I have not already signed an NDA you are entirely dependent on my good will to retain your confidentiality.

I hate these stupid disclaimers. However, I would respectfully ask all list members not to turn this into a thread on disclaimers (unless you can artfully also think up useful things to say about the TIFF related part of the email message). In fact, I suppose I should just have avoided this rant. But you know how it is. Sometimes it is hard to hold the rant in. :-)

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam,
light and sound - activate the windows |
and watch the world go round - Rush    | Geospatial Programmer for Rent