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
|
||||
while not stop:
|
||||
try:
|
||||
image.mode = 'RGB'
|
||||
image.save(filepath)
|
||||
stop = True
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue