use proper rot90

This commit is contained in:
Alex Xu 2022-02-19 14:57:36 -08:00
parent 0dbc45fc41
commit 383cf86076

View File

@ -189,7 +189,7 @@ def orientImage(image, size):
return image return image
if (widthImg > heightImg) != (widthDev > heightDev): if (widthImg > heightImg) != (widthDev > heightDev):
return image.rotate(90, Image.BICUBIC, True) return image.transpose(Image.ROTATE_90)
return image return image