{"thread":{"id":"Q39C2vZEbXKN","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-10-25T01:46:01.822Z","updatedAt":"2026-10-30T18:26:01.822Z","expiresAt":null,"replyCount":2},"replies":[{"id":"Tc4t7t4iHKxl","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-10-25T08:36:01.822Z"},{"id":"b0BNBe80u5RZ","content":"Note exif_transpose doesn't touch the file on disk, only your image object. Bit me when I assumed the originals got fixed.","author":"lena_w","createdAt":"2026-10-30T18:26:01.822Z"}]}