Mercurial > libervia-backend
diff sat/tools/image.py @ 3477:9498f32ba6f7
tools (image): fix bad method name used when `fix_orientation` is set in `resize`
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Mar 2021 14:01:51 +0100 |
parents | 1512cbd6c4ac |
children | be6d91572633 |
line wrap: on
line diff
--- a/sat/tools/image.py Thu Mar 18 22:35:59 2021 +0100 +++ b/sat/tools/image.py Fri Mar 19 14:01:51 2021 +0100 @@ -74,7 +74,7 @@ im = Image.open(im_path) resized = im.resize(new_size, Image.LANCZOS) if fix_orientation: - resized = ImageOps.fix_orientation(resized) + resized = ImageOps.exif_transpose(resized) if dest is None: dest = tempfile.NamedTemporaryFile(suffix=im_path.suffix, delete=False)