This commit is contained in:
Aevann1 2021-10-03 23:53:26 +02:00
parent eefbd43e0f
commit cdc5ddce93
2 changed files with 1 additions and 5 deletions

View file

@ -21,12 +21,8 @@ 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)
sex = IImage.open(filename)
print(sex.format)
elif i.format.lower() != "webp":
if i.format.lower() == "gif": gifwebp(input_image=filename, output_image=filename, option="-q 80")
else: i.save(filename, format="WEBP")
sex = IImage.open(filename)
print(sex.format)
return filename