mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 19:24:47 +03:00
put compress_level=1 inside Image._dump()
Better alternative to setting compress_level=1 than the secret handshake in the last attempt. The last in a series of changes to fix https://github.com/python-pillow/Pillow/issues/2508
This commit is contained in:
parent
3f9bbdec80
commit
26119d7e2e
|
@ -592,7 +592,7 @@ class Image(object):
|
|||
else:
|
||||
if not file.endswith(format):
|
||||
file = file + "." + format
|
||||
self.save(file, format)
|
||||
self.save(file, format, compress_level=1)
|
||||
return file
|
||||
|
||||
def __eq__(self, other):
|
||||
|
|
Loading…
Reference in New Issue
Block a user