2020.02.03 16:30 "[Tiff] Problem with 4.1.0 of libtiff.", by David C. Partridge

2020.02.04 16:13 "Re: [Tiff] Problem with 4.1.0 of libtiff.", by David C. Partridge

To expand somewhat on that.

tif->tif_flags, tif->tif_diroff, and pretty much most of the structure at tif->tif-dir are changed when TIFFReadEXIFDirectory is called.

As TIFFScanlineSize uses e.g. tif-dir.imagewidth etc.. it won't exactly work after a call to TIFFReadEXIFDirectory, and I suspect a slew of other stuff may go pear shaped as well.

David

I think I've found the culprit in my code. Well you always *knew* that's where it was!

I recently added some code to read the EXIF tags which calls TIFFReadEXIFDirectory, which appears switch the active directory (or something of the sort) in the tiff file with the result that the information on the image itself is no longer accessible.

After I've finished reading the EXIF tags how do I get back to the original (default) directory (or sub-directory if that's what changed) which refers to the image data?

David