#73 EXIF_MAIN write support for PluginTIFF

None
closed
Hervé Drolon
None
5
2013-01-09
2011-11-24
Christian Heimes
No

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?

Discussion

  • Hervé Drolon
    Hervé Drolon
    2011-11-27

    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é

     


Anonymous


Cancel   Add attachments