You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matthias Fratz (Jira)" <ji...@apache.org> on 2020/08/12 14:18:00 UTC
[jira] [Created] (IMAGING-262) TIFF Parser ignores XMP Metadata if
TagType is UNDEFINED
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)