forked from MarseyWorld/MarseyWorld
restrict printing to only large size difference
parent
b2c7ca31da
commit
e3fbc1a965
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue