Added docstring

This commit is contained in:
Andrew Murray 2022-11-26 19:08:49 +11:00
parent 58cbcbf108
commit 710927a311

View File

@ -99,6 +99,12 @@ class WebPImageFile(ImageFile.ImageFile):
return self.getexif()._get_merged_dict()
def getxmp(self):
"""
Returns a dictionary containing the XMP tags.
Requires defusedxml to be installed.
:returns: XMP tags in a dictionary.
"""
return self._getxmp(self.info["xmp"]) if "xmp" in self.info else {}
def seek(self, frame):