fsd
parent
2a9d826c6e
commit
9a99c55eba
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue