mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 00:02:24 +03:00
Use ImageFile.MAXBLOCK in tobytes() (#8906)
This commit is contained in:
parent
892fd2c2af
commit
95603e9717
|
@ -802,7 +802,9 @@ class Image:
|
|||
e = _getencoder(self.mode, encoder_name, encoder_args)
|
||||
e.setimage(self.im)
|
||||
|
||||
bufsize = max(65536, self.size[0] * 4) # see RawEncode.c
|
||||
from . import ImageFile
|
||||
|
||||
bufsize = max(ImageFile.MAXBLOCK, self.size[0] * 4) # see RawEncode.c
|
||||
|
||||
output = []
|
||||
while True:
|
||||
|
|
Loading…
Reference in New Issue
Block a user