Have you ever taken a picture and realized that the phone sensor hadn't changed your orientation from portrait to landscape yet? Probably...
I have a picture that the phone originally took while in Portrait mode. I used the built-in editing functions to rotate the picture so that it is in Landscape.
I can see that the picture is in landscape... that's how it is presented in the pictures hub. If I go to the OneDrive backup, it gives me the correct dimensions: 3552x2000. However, GetInfoAsync() is giving me the reverse dimensions: Height = 3552 and Width=2000.
If you browse the EXIF data, you see that it is wrong though:
So, the jpeg has incorrect EXIF data and the Imaging SDK is relying on this data only for dimensions... not sure who is more in the wrong here...
This is the picture in question if you want to see:
This is the tool I used for EXIF data: