From 200a85335ceee5fa6c2b3baa40a8e86aecfd45b5 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Sat, 9 May 2020 13:32:13 +0200 Subject: [PATCH] set image mode to RGB on save --- huepaper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/huepaper.py b/huepaper.py index d2104a7..de87a41 100755 --- a/huepaper.py +++ b/huepaper.py @@ -183,6 +183,7 @@ def save_image(filepath, image): stop = False while not stop: try: + image.mode = 'RGB' image.save(filepath) stop = True except Exception as e: