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
|
stop = False
|
||||||
while not stop:
|
while not stop:
|
||||||
try:
|
try:
|
||||||
|
image.mode = 'RGB'
|
||||||
image.save(filepath)
|
image.save(filepath)
|
||||||
stop = True
|
stop = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user