AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2007.08.22 06:13 "[Tiff] How to handle big single-strip images?", by Oliver Geisen
2007.08.22 09:36 "Re: [Tiff] How to handle big single-strip images?", by
2007.08.22 12:19 "Re: [Tiff] How to handle big single-strip images?", by Toby Thain
2007.08.22 13:58 "Re: [Tiff] How to handle big single-strip images?", by
2007.08.22 13:00 "Re: [Tiff] How to handle big single-strip images?", by Gerben Vos
2007.08.22 22:03 "[Tiff] Re: How to handle big single-strip images?", by Leonardo Serni

2007.08.22 13:00 "Re: [Tiff] How to handle big single-strip images?", by Gerben Vos

i wonder what will happen if one opens an tiff image where all the data is in a SINGLE strip (some writers offer this option) and also compressed (G4) and someone tries to use TIFFReadScanline with it? I would expect that libtiff needs to read the whole strip, because it's compressed, into memory. Or is it possible to read compressed data by chunks?

libtiff can decompress data by chunks that are multiples of a scanline.

This may depend on the compression type, but it's definitely supported for CCITT, LZW, ZIP and JPEG.

                                        Gerben Vos.