From 8dd533bd5fee2e3b83d068adfcb74d23a4dd5973 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 May 2016 21:16:46 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/editor/canvas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/canvas.py b/src/calibre/gui2/tweak_book/editor/canvas.py index e71ffc3783..46a0335440 100644 --- a/src/calibre/gui2/tweak_book/editor/canvas.py +++ b/src/calibre/gui2/tweak_book/editor/canvas.py @@ -311,7 +311,7 @@ class Canvas(QWidget): fmt = self.original_image_format or 'JPEG' if fmt.lower() not in set(map(lambda x:bytes(x).decode('ascii'), QImageWriter.supportedImageFormats())): if fmt.lower() == 'gif': - data = image_to_data(self.current_image, fmt='PNG') + data = image_to_data(self.current_image, fmt='PNG', png_compression_level=0) from PIL import Image i = Image.open(data) buf = BytesIO()