-
-
I don't know of any off hand but I've also had trouble with Exif data (I had forgotten to change the camera's clock for DST.)
It's not too hard to fix using a program. I don't know if you were able to detect any consistent theme to the metadata problem(s) and your programming experience. On the off chance it might help, here's the method I wrote in VB .NET to subtract 1 hour from my photos' time info:
Private Function fixDateTime(ByVal fdFile As FileData)
fdFile.ShotDate = fdFile.ShotDate.AddHours(-1)
Dim strFinal As String
'date
strFinal = (fdFile.ShotDate.Year & ":")
strFinal &= (fdFile.ShotDate.Month & ":")
strFinal &= (fdFile.ShotDate.Day & " ")
'time
strFinal &= (fdFile.ShotDate.Hour & ":")
strFinal &= (fdFile.ShotDate.Minute & ":")
strFinal &= (fdFile.ShotDate.Second)
Dim pic = New Bitmap(fdFile.FilePath)
Dim propItems As PropertyItem() = pic.PropertyItems
Dim encoding As New System.Text.ASCIIEncoding
Dim finalBytes() As Byte = encoding.GetBytes(strFinal)
propItems(fdFile.DTIndex).Value = finalBytes
pic.SetPropertyItem(propItems(fdFile.DTIndex))
Dim strFolder As String = "C:\ExifTemp\" & extractDirectory(fdFile.Directory)
Directory.CreateDirectory(strFolder)
pic.Save(strFolder & "\" & Path.GetFileName(fdFile.FilePath), ImageFormat.Jpeg)
End Function
-
zian wrote:On the off chance it might help, here's the method I wrote in VB .NET to subtract 1 hour from my photos' time info:
YES! Thank you so much. That code doesn't actually help the problem that I posted in this thread, but I think it will work wonders on another problem.
I have a bunch of pictures that don't have an embedded "date taken" data point, so Photo Gallery guesses the date, and gets it wrong. However the date is in the file name.
(example, if a picture was taken on 3 January 1999 at 13:14:15, then the filename would be 19990103131415.)
So hopefully I'll be able to manipulate the filenames for the date info and then put that in the "Date Taken" slot.
Thanks a bunch.
-
You're welcome. Now that I look back on my code, I realized that it's in terrible style. I'm glad you were able to figure it out.
Back to the original problem, are you able to look at the Exif data using the Properties dialog in Explorer? -
Other things to watch for... Girlfriends camera was set to the year 2025 and the dates did not really cause me many problems.
The things that gets me a lot more often is the height/width limitation of 2000 pixels wide for jpg (s). Two cases I get caught on a lot is combining multiple pictures pictures or not compensating for the dpi given the size.

Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.