Graphic orientation is wrong

When I add a JPG, the file displays ok in edit mode, However in preview mode the jpg is sideways. Any ideas? I never had this issue before.

The photo was taken on a phone and it has incorrect orientation info embedded in it. Edit the photo and resave it.