2006.12.21 23:54 "[Tiff] removing tiff tag in-place", by Gennady Khokhorin

2007.01.02 12:36 "Re: [Tiff] removing tiff tag in-place", by Gerben Vos

I have an empty tags which want to remove from tif wout copying process. I tried TIFFSetField(tif, TIFFTAG_DOCUMENTNAME, ""); but tag still seats in the file. Is it possible to drop an empty ascii tags?

Try TIFFClrFieldBit(tif, FIELD_DOCUMENTNAME), a macro defined in tif_dir.h. Note: use FIELD_DOCUMENTNAME, not TIFFTAG_DOCUMENTNAME! I've never used it, but it looks like it does what you want. I don't think there currently is a public function for this, but I think it would be a good idea to have one.

Gerben Vos.