2004.07.26 10:07 "[Tiff] Is this possible by using LibTiff?", by Sachin Garg

2004.07.30 03:53 "Re: [Tiff] Is this possible by using LibTiff?", by Andrey Kiselev

If you still want to write the directory contents somwhere you should use TIFFCheckpointDirectory() function after filling the tag values. It flashes directory out, but you should be very carefull with the strip offsets and sizes. It wil be better to use the single strip in this case.

I dont understand what you mean by writting a single strip. I dont want to write _any_ image data (when storing only the directory)

Do you mean that if I attempt to write a directory without writing any image data (just to save tags for future use) libtiff will automatically reset the size related fields accordingly?

I thought you want to prepare a TIFF directory and write it somewhere. This can be achieved with the TIFFCheckpointDirectory(). But when you will need to add the image to that directory using methods, not related to libtiff, you should use the strip parameters, written in directory previously. IT is just simpler to store the whole image in single strip.

But probably I just didn't understand what did you plan to do :-)

Best regards,
Andrey

Andrey V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517