This commit is contained in:
Andrew Murray 2025-04-18 11:30:41 +00:00 committed by GitHub
commit 078c557591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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