79410432

Date: 2025-02-04 02:19:49
Score: 1
Natty:
Report link

This was a problem with the EXIF orientation tag.

Fixed it with this:

# Open the image using PIL
image = Image.open(local_file)
from PIL import ImageOps
image = ImageOps.exif_transpose(image)

‘’’

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tyler Norlund