XMP feature added

This commit is contained in:
UrielMaD 2020-12-27 19:01:15 -06:00
parent 9947655b93
commit 762235fb06

View File

@ -1324,6 +1324,7 @@ class Image:
Returns an object containing the xmp tags for a given image.
:returns: XMP tags in an object.
"""
if self._xmp is None:
self._xmp = {}
@ -1337,7 +1338,6 @@ class Image:
for child, value in element.attrib.items():
xmp_atribs.append({child.split("}")[1]: value})
self._xmp.update({element.tag.split("}")[1]: xmp_atribs})
return self._xmp
def getim(self):