mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-05 04:50:09 +03:00
Merge 4ce2939b02
into 384675ad86
This commit is contained in:
commit
31f6b890d6
|
@ -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