admin管理员组文章数量:1122826
For years I've been reading Exif data from Images using the following code to get the individual ExifTags but recently my code has stopped working
Has anyone experienced the same issue using VB and knows of a solution.
Many thanks for your help
Jim
Imports System.Drawing.Imaging Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim sImg As String = "c:\temp\SomeImage.jpg"
Dim img As Bitmap = Bitmap.FromFile(sImg)
Dim sMsg As String = "Property Items: " & img.PropertyItems.Count & vbCrLf
For Each pi As PropertyItem In img.PropertyItems
sMsg += "Property Id: " & pi.Id & vbCrLf
Next
MsgBox(sMsg)
End Sub
End Class
Until about a month ago this would display numerous ExifTags from which I could obtain their individual properties. Recently performing this operation no yields only 2 tags as follows for any image I've tried.
Property Items: 2 Property ID: 20625 Property ID: 20624
I've tried images from several different cameras - each showing the same 2 property items - rather than the full list. I know that the ExifTags exist in the image because I can read them using other tools, such as ExifTools or ExifLib
本文标签: propertiesReading EXIF Data (Image MetaData) FailsStack Overflow
版权声明:本文标题:properties - Reading EXIF Data (Image MetaData) Fails - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304345a1932202.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论