From b119c73610fb995d5299f92e861031c0f8f6dcd7 Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Sat, 12 Jul 2025 12:47:46 -0700 Subject: [PATCH] clean up logging + move to magick --- pub.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pub.py b/pub.py index e54561c..22e12ea 100755 --- a/pub.py +++ b/pub.py @@ -55,7 +55,6 @@ def current_keys(): def upload_file(filename, overwrite=True): if not overwrite and filename in current_keys(): - print('Skipping existing key {}'.format(filename)) return print('Uploading {} to {}/{}'.format(filename, BUCKET, filename)) @@ -101,11 +100,9 @@ def thumbnail_bench(src): output = "img/bench/{}.{}.{}".format(filename, size, image_type) if not os.path.exists(output): print("Thumbnailing {}...".format(output)) - subprocess.run(["convert", "img/bench/{}".format(src), + subprocess.run(["magick", "convert", "img/bench/{}".format(src), "-resize", "{}x".format(size), "-quality", "40", output], check=True) - else: - print("Thumbnail {} exists".format(output)) def make_bench(): imgs = os.listdir('img/bench')