Update rotate_by_exif call.
This commit is contained in:
parent
0de20a34c9
commit
1bbffb4964
1 changed files with 2 additions and 2 deletions
4
rejpg.py
4
rejpg.py
|
@ -29,9 +29,9 @@ def rejpg_argparse(args):
|
|||
bytesio = io.BytesIO()
|
||||
image = PIL.Image.open(filename)
|
||||
|
||||
image = imagetools.rotate_by_exif(image)
|
||||
(image, exif) = imagetools.rotate_by_exif(image)
|
||||
|
||||
image.save(bytesio, format='jpeg', exif=image.info.get('exif', b''), quality=args.quality)
|
||||
image.save(bytesio, format='jpeg', exif=exif, quality=args.quality)
|
||||
|
||||
bytesio.seek(0)
|
||||
new_bytes = bytesio.read()
|
||||
|
|
Loading…
Reference in a new issue