2011.09.16 22:53 "[Tiff] Write Exif data to Tiff file", by DonM

2011.09.17 21:13 "Re: [Tiff] Write Exif data to Tiff file", by DonM

On Sep 17, 2011, at 10:00 AM, tiff-request@lists.maptools.org wrote:

I would like to write Exif data (such as exposure time) to a tiff file I am creating. Is this possible with libtiff, and if so is there any information or examples on how to do it?

You might want to check out OpenImageIO (www.openimageio.org). Even if you don't want to use it directly (though it's a lot easier than using libtiff directly), it's a good example of how to use libtiff, including embedding Exif data in the TIFF files. The code is all BSD licensed, so feel free to copy what you need into other applications.

As far as I can see OpenImageIO does not support writing EXIF to tiff files

either. At the end of the function TIFFOutput::put_parameter, I found
this comment:

// FIXME -- we don't currently support writing of EXIF fields. TIFF
// in theory allows it, using a custom IFD directory, but at
// present, it appears that libtiff only supports reading custom
// IFD's, not writing them.

Doesn't look good... :(

Don