From fbb0891ba3fabc05f598ccaf11d0ce85d0dc9c11 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Sep 2021 18:21:42 +0200 Subject: [PATCH] fd --- files/helpers/images.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/helpers/images.py b/files/helpers/images.py index eacd5f854..f4d860061 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -34,14 +34,12 @@ def upload_ibb(filepath=None, file=None, resize=False): om = next(frames) om.info = i.info - filepath = f"image.{i.format}" try: om.save(filepath, save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30) except Exception as e: print(e) return elif format != "gif": i = IImage.open(filepath) - filepath = f"image.{i.format}" i.save(filepath, optimize=True, quality=30) try: @@ -81,14 +79,12 @@ def upload_imgur(filepath=None, file=None, resize=False): om = next(frames) om.info = i.info - filepath = f"image.{i.format}" try: om.save(filepath, save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30) except Exception as e: print(e) return elif format != "gif": i = IImage.open(filepath) - filepath = f"image.{i.format}" i.save(filepath, optimize=True, quality=30) try: