AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2000.03.29 01:50 "Duplicating tiff file", by Kin Wong
2000.03.29 07:50 "Re: Duplicating tiff file", by Tom Lane
2000.03.29 13:37 "Re: Duplicating tiff file", by Klaus Bartz
2000.03.29 17:57 "Re: Duplicating tiff file", by Kin Wong
2000.03.29 18:18 "Re: Duplicating tiff file", by Rex Jolliff

2000.03.29 07:50 "Re: Duplicating tiff file", by Tom Lane

So I would need to read in a tiff file, process it, and write it out to a new tiff file. The caveat is that I want to preserve the original header in the new tiff file.

The tiffcp tool does that, although its approach is pretty much brute-force --- it has to know explicitly about each tag to be copied. OTOH, trying to copy an unknown tag is a dangerous thing to do in TIFF; dropping unknowns is arguably the right approach. (PNG handles this better...)

regards, tom lane