2005.10.18 17:45 "Re: [Tiff] Change existingTiffTag", by Frank Warmerdam
On 10/18/05, Tobias Gurski <tg@cromabase.de> wrote:
I try to change a tiff Tag in a existing tiff file. But I can't find a way to do this with the libtiff. Is there any way or not! I tried tiffsetField but it doesn't work. I searched 2 days without any result! Please help. Thanks
Tobias,
You might want to look at the tiffset program in libtiff/tools. It just opens the file in "r+" mode, and uses TIFFSetField() to set/reset selected fields. The thing to be aware of about this approach is that a new directory with the updated values gets written at the end of the file, orphaning the disk space used for the previous incarnation of the directory.
But if that isn't a problem for you, it should be practical.
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