2007.01.22 09:53 "Re: [Tiff] How can I read data information and write it in other TIFFimage", by Gerben Vos
Erkuden Ayala wrote:
Oh, the question is in the subject line. I see. Not very helpful. Also, you aren't giving us much information about what you want to do exactly.
However, here is some general advice.
The simplest way, for a single-image TIFF, is to open two TIFFs, one for reading and one for writing, copy the tags using TIFFGetField/TIFFSetField (see the code of the tiffcp application that comes with libtiff for an example), then copy the image data using a TIFFReadScanline/TIFFWriteScanline loop. Then close both TIFFs.
There are many example programs for this on the net and in the archives of this mailing list. The tiffcp can also be an example, although it does many things and therefore looks complicated.