2005.01.20 20:08 "[Tiff] deleting tags!", by Antoine

2005.01.21 17:42 "Re: [Tiff] deleting tags!", by Frank Warmerdam

I'm not aware of any way of clearing a tag completely from the directory either. In fact, "in place" update of a TIFF file on disk is still a relatively experimental area. In the past before in-place update there was never a compelling need to delete tags from an in memory directory since you could update a file on disk (other than appending new images).

The more conventional approach though is to copy the file you want to change to a new file, and just avoid copying anything you don't want in the new file.

wouldn't blind copying break tag data offsets?

Chris,

Sorry, I wasn't clear. I meant copying the way that tiffcp copies, tag by tag with "structural tags" handled by libtiff. So for instance Antoine could hack a version of tiffcp that did not copy the "target" tag. But tiffcp can be lossy in various ways so that isn't necessarily a great solution.

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