mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-20 09:12:00 +03:00
Use ImageFile.MAXBLOCK in tobytes()
This commit is contained in:
parent
3d4119521c
commit
f8a9e53e80
|
@ -800,7 +800,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