From 5ce067ed7025dcf1ca82acfa9870c42ad705f97f Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 14 Mar 2023 08:19:01 +0200 Subject: [PATCH] remove file size alerts --- files/helpers/media.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index d0aed3d51..caa4319ec 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -201,10 +201,6 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in return None size_after_conversion = os.stat(filename).st_size - if size_after_conversion - size > 500000: - print(STARS, flush=True) - print(f'{filename}: {oldformat}@{int(size/1024)}KB -> WEBP@{int(size_after_conversion/1024)}KB', flush=True) - print(STARS, flush=True) if resize: if size_after_conversion > MAX_IMAGE_SIZE_BANNER_RESIZED_MB * 1024 * 1024: