set image mode to RGB on save
This commit is contained in:
parent
417b5efdcc
commit
200a85335c
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue