mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-22 13:14:45 +03:00
xmp feature
This commit is contained in:
parent
ec141fd3ba
commit
895fa4d39c
|
@ -1327,7 +1327,7 @@ class Image:
|
||||||
print(xmp_tags)
|
print(xmp_tags)
|
||||||
if marker == b'http://ns.adobe.com/xap/1.0/':
|
if marker == b'http://ns.adobe.com/xap/1.0/':
|
||||||
print(xmp_tags.decode('latin-1'))
|
print(xmp_tags.decode('latin-1'))
|
||||||
root = ET.fromstring(xmp_tags)
|
root = xml.etree.ElementTree.fromstring(xmp_tags)
|
||||||
print(root)
|
print(root)
|
||||||
for element in root.findall('.//'):
|
for element in root.findall('.//'):
|
||||||
print(element.tag.split('}')[1])
|
print(element.tag.split('}')[1])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user