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

2023.04.12 20:24 "Re: [Tiff] TIffWriteDirectory() causes problems", by David C. Partridge

I've changed the code so that it reads:

                    // Go back to the first (main) directory, and set correct value of the 
                    // EXIFIFD pointer. Note that the directory is reloaded from the file! 
                    // 
                    TIFFSetDirectory(m_tiff, 0); 
                    TIFFSetField(m_tiff, TIFFTAG_EXIFIFD, dir_offset_EXIF); 
                    TIFFWriteDirectory(m_tiff); 
                    TIFFSetDirectory(m_tiff, 0);
             }

So that should sort the problem? Is that right?

Thanks,David