set image mode to RGB on save

This commit is contained in:
Denis Lehmann 2020-05-09 13:32:13 +02:00
parent 417b5efdcc
commit 200a85335c

View File

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