2004.12.07 12:25 "[Tiff] Fetching pixel data from 4bit tiff", by Dan Field

2004.12.07 11:48 "Re: [Tiff] Fetching pixel data from 4bit tiff", by Joris Van Damme

Ah, excelent. I was starting to doubt my data. So if it converts from greyscale to RGBA, surely the R, G, B values would all be the same? eg


The data I'm pulling out doesn't fit this pattern at all:


R       G        B

71      202     94
14      209     94
213     215     94
156     222     94
99      229     94

I'm not using the stuff myself, but it should indeed return R=G=B if the source is indeed grayscale. Perhaps we can see what's going on if you post a tagdump of the source tiff, and a code snippet. (A tagdump can be made with a tool included in LibTiff, tiffinfo, or by the tag viewer pointed to in my signature if you're a windows user.)

Joris Van Damme
Download your free TIFF tag viewer for windows here: