From 26119d7e2e4e7a7f5532feae658c405d46a27d6e Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Wed, 10 May 2017 21:07:31 +0100 Subject: [PATCH] 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 --- PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/Image.py b/PIL/Image.py index ec995c8f4..e0e458057 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -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):