Matthias Fratz created IMAGING-262:
--------------------------------------

             Summary: TIFF Parser ignores XMP Metadata if TagType is UNDEFINED
                 Key: IMAGING-262
                 URL: https://issues.apache.org/jira/browse/IMAGING-262
             Project: Commons Imaging
          Issue Type: Bug
          Components: Format: TIFF
    Affects Versions: 1.0-alpha1
            Reporter: Matthias Fratz
         Attachments: xmp-metadata-with-tag-type-undefined.patch

commons-imaging only extracts XMP metadata from TIFFs when the IFD's type field 
is BYTE. According to the Adobe spec ([https://www.adobe.com/devnet/xmp.html], 
part 3 "Storage in Files" section 1.1.6 "TIFF", table 13) it can be either 
UNDEFINED or BYTE, and some of the files we are processing have it set to 
UNDEFINED lately. I cannot share the offending files unfortunately because 
they're somewhat confidential.

The attached patch changes commons-imaging to write BYTES, but accept either 
BYTES or UNDEFINED when reading. It passes all existing unit tests and we've 
had it in production for a while without problems. The diff is against 
1.0-alpha1, but applies to master with line offsets.

Please let me know if you need further information.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to