forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-09 19:27:44 +02:00
parent 84307735f0
commit aa598c05f1
1 changed files with 1 additions and 1 deletions

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