2009.05.19 12:32 "[Tiff] Heap corruption caused by TIFFRGBAImageGet() + TIFFSetDirectory() + TIFFRewriteDirectory()", by

2009.06.16 22:18 "Re: [Tiff] Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Toby Thain

On 16-Jun-09, at 5:50 PM, Keshab Neupane wrote:

Bilevel images only need 1 bit per pixel.

Larger values make no sense for bilevel images – I think you have made a mistake in parsing those files.  Here, what I get from tiffinfo...please note that these are not normal tiff images but geotiff images....

TIFF Directory at offset 0x8 (8)

Image Width: 2160 Image Length: 900
Bits/Sample: 16
Sample Format: unsigned integer
Compression Scheme: None
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 1

Planar Configuration: single image plane

==> bps = 16, but bi-level images??

Why do you say "bilevel"? I think you are supposed to believe bits per sample.

--Toby

>

>

TIFF Directory at offset 0x8 (8)