-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ExifInterface: Write new XMP data out to a separate segment
The XMP spec part 3 section 3.3.2 makes it clear that JPEG files should store XMP data in separate APP1 segment, not the Exif segment under tag 700. ExifInterface is documented to (incorrectly) prefer XMP data stored in the Exif segment if both are present. But the behaviour of where XMP data is added in the file if it wasn't previously present isn't explicitly documented. This change ensures that XMP data added to a file that didn't previously have any is added in a standalone segment. This change also adds some additional documentation to describe this behaviour. Test: ExifInterfaceTest Change-Id: I84328802a3b43b4766850fcdc6731c1e7c59e909
- Loading branch information
1 parent
b8cdab7
commit 7d0fd9e
Showing
2 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters