2021.12.08 03:38 "[Tiff] Windows - difference in behavior when large RowsPerStrip is specified while writing Uncompressed vs LZW compressed TIFF file", by Nalini Vishnoi

2021.12.08 14:59 "Re: [Tiff] Windows - difference in behavior when large RowsPerStrip is specified while writing Uncompressed vs LZW compressed TIFF file", by Paavo

Hi Nalini,

You are attempting to write a single strip of ca 2.5 G pixels. This is not a wise thing to do. Most probably there is some 32-bit counter somewhere which cannot cope with such sizes, probably in the LZW compression routines.

For such large files one should use the tiled format and write e.g. 512x512 pixel tiles. This enables the reader to “zoom in” into the image by reading only a few tiles. This is widely used in “pyramidal” TIFF files of various kinds.

Another option would be to just write smaller strips, but for such large images the tiles would be the right approach.

HTH

Paavo