1997.03.04 12:58 "Managing multipage TIFF with limited memory resources", by Olof Larsson

I'm writing a program that takes scanned image data and converts it into a TIFF using libtiff. The problem is that libtiff steps through all IFDs when making a multipage TIFF to update directory links.

Stepping through these IFD's isn't possible to do in my program because I write to a memory file that is "nearly" reset between each scanned page and then sent away. When I say nearly reset I mean that the IFD for the last image is still reachable but not the IFDs before that.

Is there any way to make libtiff just update the last IFD to point to the new IFD without stepping through the whole chain?

Best regards,

Olof Larsson                         email: olof.larsson@axis.com
Axis Communications AB      Tel:  +46 46 270 19 58
Scheelevagen 16                 Fax: +46 46 13 61 30
S - 223 70 LUND                 
SWEDEN                             Please visit our WWW server at