It's piqued my curiosity now. I found an issue on the Xenforo support forum that suggests the PHP configuration needs to have the "EXIF" option enabled. That could possibly be one option that was overlooked in the server migration? Post #4 https://xenforo.com/community/threads/media-gallery-wrong-orientation.140463/
And this: https://xenforo.com/community/threads/uploading-photos.148534/ Goes into a little more detail
It works! As a test, Here’s the life cycle of a blackberry for your delectation and a shot of Paul getting a birthday savaging by Baxter.