My idea is the following: In the original image there is a special information[*1] in which orientation the image should be displayed. (This orientation specifies a different orientation than would normally result from the image encoding within the file). This special information is lost during recoding when the image file is scaled.
- Michael Sy.
Edit: [*1] exif orientation attribute?