When I resize my image and save it using the "System.Drawing.Imaging" save function, it adds the rotation embedded from the EXIF data and rotates my good original picture 180 degrees. I tried saving it in a different format to remove the EXIF data but it still includes the EXIF rotation for the new picture. Any ideas on how I can save the picture in the orientation I can see in the thumbnails .
Private Sub ClearEXIF()
Dim Pname As String = Nothing
For Each Fil In Directory.GetFiles(DlDir)
OK2Go = False
If Fil.Contains("jpg") Then OK2Go = True
If Fil.Contains("jpeg") Then OK2Go = True
If OK2Go Then
Dim bmp As Bitmap = Image.FromFile(Fil)
Pname = GetLastName(Fil) 'this function gets the name of the jpg without the path info
temp1 = Split(Pname, ".")
bmp.Save("C:\Temp\Flat\" & temp1(0) & "+" & temp1(1) & ".png", ImageFormat.png)
bmp.Dispose()
End If
Next
MsgBox("Done")
End Sub