Fix call to compress_to_filesize.
This commit is contained in:
parent
3af5d602a2
commit
ea04f8415c
1 changed files with 1 additions and 1 deletions
2
rejpg.py
2
rejpg.py
|
@ -59,7 +59,7 @@ def rejpg_argparse(args):
|
||||||
if args.filesize and file.size < args.filesize:
|
if args.filesize and file.size < args.filesize:
|
||||||
continue
|
continue
|
||||||
if args.filesize:
|
if args.filesize:
|
||||||
bytesio = compress_to_filesize(image, target_size, exif=exif)
|
bytesio = compress_to_filesize(image, args.filesize, exif=exif)
|
||||||
else:
|
else:
|
||||||
bytesio = io.BytesIO()
|
bytesio = io.BytesIO()
|
||||||
image.save(bytesio, format='jpeg', exif=exif, quality=args.quality, icc_profile=icc_profile)
|
image.save(bytesio, format='jpeg', exif=exif, quality=args.quality, icc_profile=icc_profile)
|
||||||
|
|
Loading…
Reference in a new issue