master
Aevann1 2022-01-24 19:59:14 +02:00
parent 12dce2dcad
commit 31e3179710
1 changed files with 2 additions and 2 deletions

View File

@ -35,10 +35,10 @@ def process_image(file=None, filename=None, resize=0):
om = next(frames)
om.info = i.info
om.save(filename, format="WEBP", save_all=True, append_images=list(frames), loop=0, method=6, allow_mixed=True, exif=exif)
om.save(filename, format="WEBP", save_all=True, append_images=list(frames), loop=0, method=6, allow_mixed=True)
elif i.format.lower() != "webp":
if i.format.lower() == "gif":
gifwebp(input_image=filename, output_image=filename, option="-mixed -metadata none -f 100 -mt -m 6")
else: i.save(filename, format="WEBP", method=6, exif=exif)
else: i.save(filename, format="WEBP", method=6)
return f'/static{filename}'