AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2003.02.17 13:12 "flushing of tiffs where only the directory has changed", by Axel Waggershauser
2003.02.18 18:57 "Re: flushing of tiffs where only the directory has changed", by Andrey Kiselev
2003.02.20 08:31 "Re: flushing of tiffs where only the directory has changed", by Axel Waggershauser
2003.02.21 08:07 "Re: flushing of tiffs where only the directory has changed", by Andrey Kiselev

2003.02.21 08:07 "Re: flushing of tiffs where only the directory has changed", by Andrey Kiselev

On Thu, Feb 20, 2003 at 09:31:01AM +0100, Axel Waggershauser wrote:

You need TIFFRewriteDirectory() function. Call TIFFRewriteDirectory() after all SetField() calls and before TIFFClose(). TIFFRewriteDirectory(3t) manpage has additional info.

The man page says that TIFFRewriteDirectory stores the directory at the end of the file at a new location, does this mean the tiff file increases in size every time I call this function (the amount of data stored in the mentioned custom field is not negligible)?

Yes, file size will grows. Behaviour of the TIFFRewriteDirectory() can be improved: if directory located at the end of file, it will be replaced. You may fill a feature request at Bugzilla for this improvement.

--
Andrey V. Kiselev

Home phone: +7 812 5274898 ICQ# 26871517