The patch adds write support to the TIFF plugin for EXIF_MAIN tags.
I've tested the patch with our Python wrapper (smc.freeimage), multiple TIFF images and tags like DocumentName, Software, Artist and PageName. However I'm not sure if the patch works for all types of tags. Does FITAGHEADER->value always contain a TIFF compatible type?
Anonymous
Hi Christian,
Thanks for the patch. I've added it to the CVS, with some security checks.
Indeed, TIFFSetField rely on _TIFFmemcpy and tag assignment will fail whenever FI and LibTIFF tag data types are different.
For instance, FI uses arrays of rationals (8 bytes / component) where libtiff use arrays of floats (4 bytes / component).
So, such kind of tag will be skipped and won't be present in the output TIF.
Hervé