Fix call to compress_to_filesize.

This commit is contained in:
voussoir 2023-08-20 15:37:15 -07:00
parent 3af5d602a2
commit ea04f8415c

View file

@ -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)