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:
Hin-Tak Leung 2017-05-10 21:07:31 +01:00
parent 3f9bbdec80
commit 26119d7e2e

View File

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