I have a digital photo frame that showcases all my best family shots over the past 20 years. It's always worked fine for both portrait and landscape oriented photos.
Now I got a new cellphone (Xiaomi Mi A1) over a year ago, with a fabulous camera function, but unfortunately all the photos take on that camera are displaying rotated 90 degrees on the photo frame. The old portrait photos still show up fine, and my portrait photos from the new camera display fine on my computer, Google Photos, etc. But when I load them into the photo frame, they are rotated 90 degrees.
I asked on SuperUser, and got an answer that the orientation info is in the EXIF data, which apparently is in a format that every other image reader understands, but my photo frame doesn't, and I need to modify all my portrait-oriented images in an image editor so that the frame recognizes the EXIF data.
Being a programmer, obviously I'm not going to do this manually. But I have no idea how to view or edit EXIF data of a JPG.
Anyone have any code snippets handy for changing the orientation of a JPG? C# preferred.