set image mode before preview
This commit is contained in:
parent
200a85335c
commit
85e3c36381
1 changed files with 2 additions and 1 deletions
|
|
@ -183,7 +183,6 @@ def save_image(filepath, image):
|
|||
stop = False
|
||||
while not stop:
|
||||
try:
|
||||
image.mode = 'RGB'
|
||||
image.save(filepath)
|
||||
stop = True
|
||||
except Exception as e:
|
||||
|
|
@ -269,6 +268,8 @@ def main():
|
|||
if emblem:
|
||||
image = add_emblem(image, emblem)
|
||||
|
||||
image.mode = 'RGB'
|
||||
|
||||
if preview:
|
||||
image.show()
|
||||
if not output:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue