From 85e3c3638148766e27ae2decbb007f8da06f9624 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Sat, 9 May 2020 13:34:11 +0200 Subject: [PATCH] set image mode before preview --- huepaper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/huepaper.py b/huepaper.py index de87a41..4270b1a 100755 --- a/huepaper.py +++ b/huepaper.py @@ -183,7 +183,6 @@ def save_image(filepath, image): stop = False while not stop: try: - image.mode = 'RGB' image.save(filepath) stop = True except Exception as e: @@ -269,6 +268,8 @@ def main(): if emblem: image = add_emblem(image, emblem) + image.mode = 'RGB' + if preview: image.show() if not output: