Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

On high resultion jpg files imread then imwrite change the image orientation

My system

OpenCV version: 2.4.13
Host OS: Windows 8.1
python 2.7
Windows photo viewer to view the images.

imreading and then imwrite on pictures that were taken from high resolution camera the picture orientation changes the picture orientation.

=============== python code ====================

import numpy as np
import cv2
img = cv2.imread('1-0.jpg')
cv2.imwrite('1-1.jpg',img)

1-0.jpg size = 19.1 MB (20,065,690 bytes)
1-1.jpg size = 9.05 MB (9,492,507 bytes)

On high resultion jpg files imread then imwrite change the image orientation

My system

OpenCV version: 2.4.13
Host OS: Windows 8.1
python 2.7
Windows photo viewer to view the images.

imreading and then imwrite on pictures a picture that were was taken from a high resolution camera chances the picture orientation changes the picture orientation. orientation

=============== python code ====================

import numpy as np
import cv2
img = cv2.imread('1-0.jpg')
cv2.imwrite('1-1.jpg',img)

1-0.jpg size = 19.1 MB (20,065,690 bytes)
1-1.jpg size = 9.05 MB (9,492,507 bytes)