changeset 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 11003f9f92fb
children b65175eb7769
files sat/tools/image.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)