You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Digging into the code, I believe the problem is that the "APP1" segment seems to be padded with several b"\x00" so the getxmp() function doesn't find the marker due to rsplit being used. But there might be other issues:
The text was updated successfully, but these errors were encountered:
radarhere
changed the title
getxmp() not returning any values for file containing XMP.
getxmp() not returning any values for file containing XMP
Jul 10, 2023
Attached is an example file with XMP data.
Exiftool shows the XMP data correctly:
But when opening it with Pillow (defusedxml is installed), it returns no XMP Data:
What did you expect to happen?
It should return the XMP data of the file.
What actually happened?
It returned an empty dict.
Digging into the code, I believe the problem is that the "APP1" segment seems to be padded with several
b"\x00"
so thegetxmp()
function doesn't find the marker due to rsplit being used. But there might be other issues:What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: