mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
XMP feature added
This commit is contained in:
parent
cc8070aec5
commit
2f29f1306f
|
@ -1324,10 +1324,8 @@ 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 = {}
|
||||
|
||||
for segment, content in self.applist:
|
||||
if segment == "APP1":
|
||||
marker, xmp_tags = content.rsplit(b"\x00", 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user