Merge pull request #5 from UrielMaD/xmp_feature

xmp feature
This commit is contained in:
Uriel Martinez 2020-12-26 00:32:33 -06:00 committed by GitHub
commit ecf2adc836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1327,7 +1327,7 @@ class Image:
print(xmp_tags)
if marker == b'http://ns.adobe.com/xap/1.0/':
print(xmp_tags.decode('latin-1'))
root = ET.fromstring(xmp_tags)
root = xml.etree.ElementTree.fromstring(xmp_tags)
print(root)
for element in root.findall('.//'):
print(element.tag.split('}')[1])