Use mb_config when creating core images

This commit is contained in:
Andrew Murray 2024-10-14 22:35:25 +11:00
parent 605c4083e1
commit e79b88ea5f

View File

@ -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: