increase webp quality

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-13 01:40:59 +02:00
parent cec08c9e55
commit 6e2a7aa99e
1 changed files with 2 additions and 3 deletions

View File

@ -111,10 +111,9 @@ def process_image(filename=None, resize=0):
i.info["exif"] = exif.tobytes()
if i.format.lower() == "gif":
gifwebp(input_image=filename, output_image=filename,
option="-mixed -metadata none -f 100 -mt -m 6")
gifwebp(input_image=filename, output_image=filename, option="-mixed -metadata none -f 100 -mt -m 6")
else:
i = ImageOps.exif_transpose(i)
i.save(filename, format="WEBP", method=6)
i.save(filename, format="WEBP", method=6, quality=88)
return filename