2009.04.16 13:39 "Re: [Tiff] Re garding TIFFRewriteDirectory", by Frank Warmerdam
I am using Libtiff version 4.0.0 in my application. I have a requirement of updating frames and custom tags for a tiff image. I update a frame using TIFFRewriteDirectory function. If i dont use this function the image gets corrupted. For a 16 bit tiff image, this approach has no problem. For 8 bit tiff image, if i update a frame and call TIFFRewriteDirectory, the frame does not get updated. If i do not call TIFFRewriteDirectory, the frame gets updated but the file gets corrupted.
I am not sure whether the approach which i have taken is correct. Any suggestions are welcome.
Munmun,
It would be helpful if you could provide a minimal code example and an input file that demonstrate the effects you are encountering. I might well need to run things in the debugger to analyse the problem.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent