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
importtypesfromPIL.JpegImagePluginimportJpegImageFilecontent=b"""<paste XML from above>"""im=types.SimpleNamespace(_xmp={}, applist=[("APP1", content)])
print(JpegImageFile.getxmp(im))
Hi. Pillow 8.3.0 has now been released with updated format.
However, be aware that we've added a new requirement - as a security feature, you will have to install defusedxml to get it to work. See #5565 for more information
Tag values (not attributes) are ignored when constructing the XMP from
JpegImageFile.getxmp
.My (panorama) image has XMP (APP1):
Which currently Pillow resolves to:
You can replicate the above result with:
My optimistic expectation would be:
My environment:
OS: Ubuntu 20.04.2
Python: 3.8.5
Pillow: 8.2.0
The text was updated successfully, but these errors were encountered: