mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 11:26:17 +03:00
XMP feature added
This commit is contained in:
parent
9947655b93
commit
762235fb06
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user