fsd
This commit is contained in:
parent
68605974c6
commit
4bf0c14d88
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue