问题描述
当我调整图像大小并使用“ System.Drawing.Imaging”保存功能将其保存时,它将添加从EXIF数据中嵌入的旋转并将我的原始图片旋转180度。我尝试将其保存为其他格式以删除EXIF数据,但它仍然包括新图片的EXIF旋转。关于如何以缩略图中显示的方向保存图片的任何想法。
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
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)