Skip to content

Commit

Permalink
Use mb_config when creating core images
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 14, 2024
1 parent 605c408 commit e79b88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ def load(self) -> Image.core.PixelAccess | None:
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:
Expand Down

0 comments on commit e79b88e

Please sign in to comment.