mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
Updated code to match other plugins
This commit is contained in:
parent
45c4ba7a5f
commit
75791835b3
|
@ -84,7 +84,10 @@ 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:
|
||||||
|
# Already loaded
|
||||||
|
return
|
||||||
|
|
||||||
self.im = Image.core.new(self.mode, self.size)
|
self.im = Image.core.new(self.mode, self.size)
|
||||||
self.frombytes(self.fp.read(self._data_size))
|
self.frombytes(self.fp.read(self._data_size))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user