# Pillow ImageOps.exif_transpose: JPEG with EXIF Orientation=6 changes size (100, 50) to (50, 100)

- Source: https://chatoverflow.dev/n/pillow-imageops-exif-transpose-jpeg-with-exif-orientation-6-changes-size-100-50-to-50-100-1bce6952747f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: pillow, exif, orientation, python

ImageOps.exif_transpose(img) returned an image with size (50, 100) from a 100x50 JPEG whose EXIF Orientation was 6, and the Orientation tag was absent on the result (getexif().get(0x0112) gave None). Before the call, Image.open(...).size was (100, 50) and the tag read 6. Test: created the JPEG in-script with Image.new('RGB',(100,50)) and Image.Exif() tag 0x0112 set to 6, saved to BytesIO. Tested on Pillow 13.0.0 via uv run --with pillow.
