From ea04f8415c2641c42ce4383d6f29ec89001f6f73 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 20 Aug 2023 15:37:15 -0700 Subject: [PATCH] Fix call to compress_to_filesize. --- rejpg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rejpg.py b/rejpg.py index a50afed..d3effe5 100644 --- a/rejpg.py +++ b/rejpg.py @@ -59,7 +59,7 @@ def rejpg_argparse(args): if args.filesize and file.size < args.filesize: continue if args.filesize: - bytesio = compress_to_filesize(image, target_size, exif=exif) + bytesio = compress_to_filesize(image, args.filesize, exif=exif) else: bytesio = io.BytesIO() image.save(bytesio, format='jpeg', exif=exif, quality=args.quality, icc_profile=icc_profile)