diff --git a/sat/tools/image.py b/sat/tools/image.py index 01340b91..45094ca7 100644 --- a/sat/tools/image.py +++ b/sat/tools/image.py @@ -74,7 +74,7 @@ def _resize_blocking(image_path, new_size, dest, fix_orientation): 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)