bb
This commit is contained in:
parent
d662eab07d
commit
1f6f868057
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ def process_image(filename=None, resize=False):
|
|||
om.info = i.info
|
||||
om.save(filename, format="WEBP", save_all=True, append_images=list(frames), loop=0)
|
||||
elif i.format.lower() != "webp":
|
||||
if i.format.lower() == "gif": gifwebp(input_image=filename, output_image=filename, option="-q 80")
|
||||
if i.format.lower() == "gif": gifwebp(input_image=filename, output_image=filename, option="-q 100")
|
||||
else: i.save(filename, format="WEBP")
|
||||
|
||||
return f'/static{filename}'
|
Loading…
Add table
Add a link
Reference in a new issue