I have the following scenario:
If you're using Pillow >= 6.0.0, you can use the built-in ImageOps.exif_transpose function do correctly rotate an image according to its exif tag:
from PIL import ImageOps image = ImageOps.exif_transpose(image)