Thank you! You nailed it spot on!
I had to read up on EXIF. I found a good article by Hannes DuPreez: "Getting Image Data from Picture Files in .NET" from 2018.
It is 20 years old code and your advise is right. I rotate the picture on the computer so it looks right. Often it is a question of 90 degrees left or right. When the program uploads the picture and the turning only has been in the EXIF information, I physically turn it and clear the orientation flag back to 1 (TopLeft)
<pre>
Dim bmpSource As New System.Drawing.Bitmap(FullPathFilename)
Dim EW As New EXIFData(bmpSource)
Dim iOrientation As Integer
iOrientation = EW.Orientation()
' If iOrientation is 1 called TopLeft it is Ok
' If iOrientation is 8 it is fliped 90 clockwise then flip it 270 degrees more
If iOrientation = 8 Then bmpSource.RotateFlip(RotateFlipType.Rotate270FlipNone)
' If iOrientation is 3 it is flip upside down then flip it 180 degrees
If iOrientation = 3 Then bmpSource.RotateFlip(RotateFlipType.Rotate180FlipNone)
' If iOrientation is 6 it is 90 against the clock then flip it 90 degrees
If iOrientation = 6 Then bmpSource.RotateFlip(RotateFlipType.Rotate90FlipNone)
' Then set the Orientation to 1 and save the rotated bitmap to disk
iOrientation = 1
EW.Orientation() = iOrientation
bmpSource.Save(FullPathFilename)
' Verify width, height and Orientation
Dim txtEXIF As String = EW.ToString()
EW.Dispose()
And thank you to CodeProject.com