2023.04.12 15:14 "[Tiff] TIffWriteDirectory() causes problems", by David C. Partridge

2023.04.13 12:26 "Re: [Tiff] TIffWriteDirectory() causes problems", by Olivier Paquet

Hi,

You can prefill StripOffsets and StripByteCounts yourself by using TIFFWriteRawStrip() calls with null data pointer and 0 size for all strips. This should let you avoid changing directory size when you later write actual data.

Olivier