From 1fbcbaa2af92b65137c0b611fcc89319d39bb99d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 10 Sep 2021 06:23:24 +0200 Subject: [PATCH] df --- files/helpers/images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/images.py b/files/helpers/images.py index 9db128ea3..3905b413b 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -36,7 +36,7 @@ def upload_ibb(filepath=None, file=None, resize=False): om.info = i.info try: om.save(filepath, save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30) except: return - elif format != ".gif": + elif format != "gif": i = IImage.open(filepath) i.save(filepath, optimize=True, quality=30) @@ -78,7 +78,7 @@ def upload_imgur(filepath=None, file=None, resize=False): om.info = i.info try: om.save(filepath, save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30) except: return - elif format != ".gif": + elif format != "gif": i = IImage.open(filepath) i.save(filepath, optimize=True, quality=30)