restrict printing to only large size difference

master
Aevann 2023-03-07 02:21:12 +02:00
parent b2c7ca31da
commit e3fbc1a965
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ 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:
if size_after_conversion - size > 50000:
print(STARS, flush=True)
print(f'{filename}: {oldformat}@{size} -> WEBP@{size_after_conversion}', flush=True)
print(STARS, flush=True)