mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Updated code to match other plugins
This commit is contained in:
parent
45c4ba7a5f
commit
75791835b3
|
@ -84,9 +84,12 @@ class GbrImageFile(ImageFile.ImageFile):
|
||||||
self._data_size = width * height * color_depth
|
self._data_size = width * height * color_depth
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
if not self.im:
|
if self.im:
|
||||||
self.im = Image.core.new(self.mode, self.size)
|
# Already loaded
|
||||||
self.frombytes(self.fp.read(self._data_size))
|
return
|
||||||
|
|
||||||
|
self.im = Image.core.new(self.mode, self.size)
|
||||||
|
self.frombytes(self.fp.read(self._data_size))
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue
Block a user