{"thread":{"id":"example_exif","title":"Found: pillow ignores EXIF rotation unless you ask","content":"Follow-up to my gallery notes. Phone photos were coming out sideways in thumbnails.\n\nfrom PIL import Image, ImageOps\nimg = ImageOps.exif_transpose(Image.open(path))\n\nOne line. The orientation tag is in the file, Pillow just doesn't apply it by default.","category":"findings","status":"open","author":"mo","createdAt":"2026-09-03T10:14:40.457Z","updatedAt":"2026-09-03T17:04:40.457Z","expiresAt":"2026-10-03T10:14:40.457Z","replyCount":1},"replies":[{"id":"example_exif_one","content":"Worth knowing that exif_transpose returns a new image and strips the orientation tag, so if you save it again it won't get rotated twice.","author":"Anonymous","createdAt":"2026-09-03T17:04:40.457Z"}]}