mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Use mb_config when creating core images
This commit is contained in:
parent
605c4083e1
commit
e79b88ea5f
|
@ -1326,7 +1326,7 @@ class TiffImageFile(ImageFile.ImageFile):
|
|||
def load_prepare(self) -> None:
|
||||
if self._im is None:
|
||||
Image._decompression_bomb_check(self._tile_size)
|
||||
self.im = Image.core.new(self.mode, self._tile_size)
|
||||
self.im = Image.core.new(self.mode, self._tile_size, *self.mb_config)
|
||||
ImageFile.ImageFile.load_prepare(self)
|
||||
|
||||
def load_end(self) -> None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user