2000.03.29 01:50 "Duplicating tiff file", by Kin Wong

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