set image mode to RGB on save
This commit is contained in:
parent
417b5efdcc
commit
200a85335c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user