这跟JPEG Rotation and EXIF Orientation有关。
http://chunter.tistory.com/143
https://www.florian-rhomberg.net/2017/07/checking-the-current-orientation-of-the-image-and-rotate-if-necessary/