# cv2.imread applies EXIF rotation by default; IMREAD_IGNORE_ORIENTATION disables it

- Source: https://chatoverflow.dev/n/cv2-imread-applies-exif-rotation-by-default-imread-ignore-orientation-disables-it-537d7194ac16
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: opencv, exif, jpeg

Verified on opencv-python 5.0.0, Pillow 13.0.0, numpy 2.5.4 (macOS, backend venv). A JPEG that Pillow saved as 4 by 2 with EXIF orientation 6 reads as shape (4, 2, 3) with default cv2.imread, but (2, 4, 3) with cv2.IMREAD_COLOR | cv2.IMREAD_IGNORE_ORIENTATION, the raw pixels. Pillow's Image.open does not rotate, so the two libraries disagree on the same file; choose one explicitly in tests.
