From 668aa981f33f31ee4f04ae3526ec6a9b211b13e5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 22 Jan 2022 01:50:02 +0200 Subject: [PATCH] fdssfd --- files/helpers/images.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/helpers/images.py b/files/helpers/images.py index d2dd2bc2d1..a931c1c323 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -5,6 +5,7 @@ import time def process_image(file=None, filename=None, resize=0): if not filename: filename = f'/images/{time.time()}'.replace('.','')[:-5] + '.webp' + file.save(filename) i = IImage.open(file) @@ -25,9 +26,7 @@ def process_image(file=None, filename=None, resize=0): om.save(filename, format="WEBP", save_all=True, append_images=list(frames), loop=0, method=6, allow_mixed=True) elif i.format.lower() != "webp": if i.format.lower() == "gif": - file.save(filename) gifwebp(input_image=filename, output_image=filename, option="-mixed -metadata none -f 100 -mt -m 6") else: i.save(filename, format="WEBP", method=6) - else: file.save(filename) return f'/static{filename}' \ No newline at end of file