Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version 1 Like Search this Thread
06-01-2010, 07:52 AM   #1
Veteran Member
dgaies's Avatar

Join Date: Oct 2009
Location: Maryland / Washington DC
Posts: 3,917
Wrong date set in my K7, is there a way to (batch) correct the EXIF info?

I guess I was a little too anxious to open up and start using my K7 last month that I must have forgotton to enter the date/time when I first turned it on. I didn't notice it until this morning (a month later) and now I have a ton of files with the incorrect date info stored in the EXIF.

Does anyone know of a piece of software (or other method) that would go back and correct this? All of the dates are offset by the exact same amount of time so it would just be a matter of adding that amount of time on to what is already in the EXIF data. If all else fails I may just resort to trying to writing a program myself, but I have to believe I am not he first person to make this mistake and want to correct it so I was hoping something was already out there.

Thanks.

06-01-2010, 08:03 AM - 1 Like   #2
Veteran Member




Join Date: Nov 2006
Location: Near Montréal, Canada
Photos: Gallery
Posts: 1,716
ExifTool (ExifTool by Phil Harvey) has the capability to do what you want:

QuoteQuote:
-TAG[+-]=[VALUE]
Write a new value for the specified tag (ie. "-comment=wow"), or
delete the tag if no VALUE is given (ie. "-comment="). "+=" and
"-=" are used to add or remove existing entries from a list, or to
shift date/time values (see Image::ExifTool::Shift.pl for
details), and "-=" may be used to conditionally remove or replace
a tag (see "WRITING EXAMPLES" for examples).
And from the examples section of the documentation:

QuoteQuote:
exiftool -DateTimeOriginal-=’0:0:0 1:30:0’ dir
Adjust original date/time of all images in directory "dir" by sub-
tracting one hour and 30 minutes. (This is equivalent to "-Date-
TimeOriginal-=1.5". See Image::ExifTool::Shift.pl for details.)

exiftool -createdate+=3 -modifydate+=3 a.jpg b.jpg
Add 3 hours to the CreateDate and ModifyDate timestamps of two
images.

exiftool -AllDates+=1:30 -if ’$make eq "Canon"’ dir
Shift the values of DateTimeOriginal, CreateDate and ModifyDate
forward by 1 hour and 30 minutes for all Canon images in a direc-
tory. (The AllDates tag is provided as a shortcut for these three
tags, allowing them to be accessed via a single tag.)
So something like
Code:
exiftool -AllDates+=hh:mm *.jpg
should do the trick
06-01-2010, 08:11 AM   #3
Veteran Member
Marc Sabatella's Avatar

Join Date: Sep 2006
Location: Denver, CO
Photos: Gallery
Posts: 10,685
As does any decent image management program - Lightroom, ACDSee, Aperture, etc.

I'm moving this thread to the PP / Software forum as it is more appropriate there.
06-01-2010, 08:14 AM   #4
Veteran Member
mattdm's Avatar

Join Date: Feb 2007
Location: Boston, MA
Photos: Gallery
Posts: 2,948
Jhead (Exif Jpeg header manipulation tool) also does this, and has some convenience options that make it particularly well-suited for fixing problems like this. The "-da" flag is my favorite for big batch corrections. Take a picture of a clock (with a second hand or counter) with the date still wrong, and then later look at that image's exif vs. the pictured time/date, and use -da with those two times.

06-01-2010, 09:10 AM   #5
Veteran Member
dgaies's Avatar

Join Date: Oct 2009
Location: Maryland / Washington DC
Posts: 3,917
Original Poster
Thanks everyone! I will give it a try this afternoon.
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
amount, date, exif, k7, month, photography, photoshop, time

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch edit of exif to add copyright Rick Digital Processing, Software, and Printing 41 08-04-2013 01:54 PM
DxO doesn't correct images/ Am I doing sth. wrong? Egg Salad Digital Processing, Software, and Printing 9 01-28-2010 05:35 PM
Lost EXIF info Gillies Troubleshooting and Beginner Help 5 01-13-2010 03:46 AM
EXIF help (date created) vs. (date taken) dragonfly Digital Processing, Software, and Printing 3 09-12-2009 10:22 AM
AF Info in EXIF useful for anything? morfic Pentax DSLR Discussion 9 06-18-2008 08:56 PM



All times are GMT -7. The time now is 05:01 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top