mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 00:02:24 +03:00
JpegImagePlugin._getexif expects no exif key in info dict, not None
This commit is contained in:
parent
b1b88cf4d2
commit
4ce2939b02
|
@ -32,7 +32,9 @@ class WebPImageFile(ImageFile.ImageFile):
|
||||||
def _open(self):
|
def _open(self):
|
||||||
data, width, height, self.mode, icc_profile, exif = _webp.WebPDecode(self.fp.read())
|
data, width, height, self.mode, icc_profile, exif = _webp.WebPDecode(self.fp.read())
|
||||||
|
|
||||||
|
if icc_profile:
|
||||||
self.info["icc_profile"] = icc_profile
|
self.info["icc_profile"] = icc_profile
|
||||||
|
if exif:
|
||||||
self.info["exif"] = exif
|
self.info["exif"] = exif
|
||||||
|
|
||||||
self.size = width, height
|
self.size = width, height
|
||||||
|
|
Loading…
Reference in New Issue
Block a user