remotes/1693045480750635534/spooky-22
Aevann1 2022-01-13 04:24:46 +02:00
parent 7b00d1dafc
commit adf007f726
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ def process_image(filename=None, resize=False):
om = next(frames)
om.info = i.info
om.save(filename, format="WEBP", save_all=True, append_images=list(frames), loop=0, lossless=True, quality=100, method=6)
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="-q 100 -m 6 -metadata 'none' -mt")
else: i.save(filename, format="WEBP", lossless=True, quality=100, method=6)
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)
return f'/static{filename}'