This commit is contained in:
Aevann1 2022-01-09 19:27:44 +02:00
parent d662eab07d
commit 1f6f868057

View file

@ -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}'