Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My camera's batteries run out and the stored date was wrong and the I have now about 100 photos with an incorrect date. Is there any app that can change the photos date? Something that can calculate NewDate=(OldDate - 1day.2months.12hours), so I don't have to calculate the difference and enter the date for every file?

share|improve this question

exiv2 should be the easiest solution to do this:

exiv2 -O -2 -D -1 -a -12:00:00 adjust /path/to/copy/*.jpg

Excerpt from the man page:

exiv2 - Image metadata manipulation tool 
exiv2 [options] [action] file ...

ad | adjust
    Adjust Exif timestamps by the given time. Requires at least one of the options -a time, -Y yrs, -O mon or -D day.

-a time
    Time adjustment in the format [-]HH[:MM[:SS]]. This option is only used with the 'adjust' action. Examples: 1 adds one hour, 1:01 adds one hour and one minute, -0:00:30 subtracts 30 seconds. 
-Y yrs
    Time adjustment by a positive or negative number of years, for the 'adjust' action. 
-O mon
    Time adjustment by a positive or negative number of months, for the 'adjust' action. 
-D day
    Time adjustment by a positive or negative number of days, for the 'adjust' action. 

Also, I'd suggest you try this first on a copy of the photos, not on the originals.

share|improve this answer
    
i'll give it a try :) – Remus Rigo Jul 26 '12 at 12:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .