Valdearg-I know this has happened to me in the past with pics I've taken on mobile devices, possibly due to how the camera was rotated when the picture was taken
Phone cameras always take photos horizontally, then include a little bit of data to indicate that a photo viewer should display the picture vertically. It's possible that sadpanda doesn't read that bit of extra data.