From 5ec22acf45f812bfdfe844d90764a62c94d47313 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 7 Feb 2023 16:25:10 -0800 Subject: remove padding --- square.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/square.py b/square.py index 6cf3b48..9e01138 100755 --- a/square.py +++ b/square.py @@ -65,11 +65,6 @@ def drop_shadow(image, offset=(5, 5), background=0xffffff, shadow=0x444444, bord if __name__ == "__main__": - parser = argparse.ArgumentParser(description="Options") - parser.add_argument('--padding', action=argparse.BooleanOptionalAction) - - args = parser.parse_args() - files = glob.glob("*") for file in files: if (file.endswith(".jpg") or file.endswith(".png")) \ @@ -85,8 +80,5 @@ if __name__ == "__main__": continue print("Processing {}".format(file)) - if args.padding is True: - result = square_size_padding(drop_shadow(im, background=0xFAFAFA, shadow=0x444444, offset=(20, 20))) - else: - result = square_size_no_padding(drop_shadow(im, background=0xFAFAFA, shadow=0x444444, offset=(20, 20))) + result = square_size_padding(im) result.save("{}-result.{}".format(names[0], names[1]), quality=100) -- cgit v1.2.3