Merge pull request #51 from axu2/rotate90

use proper rot90
This commit is contained in:
Alexei Yatskov 2022-07-14 14:42:11 -07:00 committed by GitHub
commit 5a5188ee52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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