remotes/1693045480750635534/spooky-22
Aevann1 2021-09-23 18:47:48 +02:00
parent 2a9d826c6e
commit 9a99c55eba
1 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,7 @@ def upload_ibb(file=None, resize=False):
om = next(frames)
om.info = i.info
om.save("image.webp", save_all=True, append_images=list(frames), loop=0)
else:
elif i.format.lower() != "webp":
if i.format.lower() == "gif": gifwebp(input_image="image.webp", output_image="image.webp", option="-q 80")
else: i.save("image.webp")
@ -50,7 +50,6 @@ class UploadException(Exception):
pass
def upload_video(file):
file_path = path.join("temp", secure_filename(file.filename))