Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around invalid XMP XML #359

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Work around invalid XMP XML #359

merged 1 commit into from
Jan 16, 2024

Conversation

drewnoakes
Copy link
Owner

Fixes #356

Software that re-writes XMP can do so without changing the size of the XMP segment. If it overwrites the data with a shorter payload, there can be junk at the end which causes the XML parsing to fail.

This change adds a scan for known end-of-message markers, to avoid this problem.

Software that re-writes XMP can do so without changing the size of the XMP segment. If it overwrites the data with a shorter payload, there can be junk at the end which causes the XML parsing to fail.

This change adds a scan for known end-of-message markers, to avoid this problem.
@drewnoakes drewnoakes merged commit 55298e9 into master Jan 16, 2024
4 checks passed
@drewnoakes drewnoakes deleted the fix-356-xmp-trailer branch January 16, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encoding Error extracting XMP data from PNG file
1 participant