From 383cf860768fbe0d01474142be377a51977d49f1 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 19 Feb 2022 14:57:36 -0800 Subject: [PATCH] use proper rot90 --- mangle/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mangle/image.py b/mangle/image.py index 7a68e46..3928b98 100644 --- a/mangle/image.py +++ b/mangle/image.py @@ -189,7 +189,7 @@ def orientImage(image, size): return image if (widthImg > heightImg) != (widthDev > heightDev): - return image.rotate(90, Image.BICUBIC, True) + return image.transpose(Image.ROTATE_90) return image