mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-15 06:07:33 +03:00
tile is already an empty list
This commit is contained in:
parent
f2cc87b1f0
commit
a433f24f0b
|
@ -103,7 +103,6 @@ class GifImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
self.info["version"] = s[:6]
|
self.info["version"] = s[:6]
|
||||||
self._size = i16(s, 6), i16(s, 8)
|
self._size = i16(s, 6), i16(s, 8)
|
||||||
self.tile = []
|
|
||||||
flags = s[10]
|
flags = s[10]
|
||||||
bits = (flags & 7) + 1
|
bits = (flags & 7) + 1
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ class WebPImageFile(ImageFile.ImageFile):
|
||||||
self.is_animated = self.n_frames > 1
|
self.is_animated = self.n_frames > 1
|
||||||
self._mode = "RGB" if mode == "RGBX" else mode
|
self._mode = "RGB" if mode == "RGBX" else mode
|
||||||
self.rawmode = mode
|
self.rawmode = mode
|
||||||
self.tile = []
|
|
||||||
|
|
||||||
# Attempt to read ICC / EXIF / XMP chunks from file
|
# Attempt to read ICC / EXIF / XMP chunks from file
|
||||||
icc_profile = self._decoder.get_chunk("ICCP")
|
icc_profile = self._decoder.get_chunk("ICCP")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user