Author Topic: Change Date in Photo  (Read 1537 times)

mlsds

  • Newbie
  • *
  • Posts: 2
Change Date in Photo
« on: March 20, 2014, 07:11:37 PM »
Please forgive me if double posting but I couldn't find appropriate help from other posts.
I've just downloaded exiftool for Mac and I want to change only the year metadata of some of my photos leaving the time/day/month metadata completely untouched.
How can I do it for one file?
Is there a way of doing it for multiple files at once?
I am not that familiar with the Terminal so pls pls pls give me as many details as possible.
Thank you in advance and my apologies if double-posting

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16878
    • ExifTool Home Page
Re: Change Date in Photo
« Reply #1 on: March 21, 2014, 06:20:59 AM »
The command could look something like this:

exiftool -alldates+="1:: 0" DIR

where DIR is the name of one or more files or directories.  (Just drag and drop the file/folder onto the Terminal window instead of typing the name.)

The "1:: 0" is the minimal date/time specification needed to increment the time by one year.  Replace the "1" by any other number to increment by more, or use "-=" instead of "+=" to decrement the year.  If you want to set the year to a specific value, the command gets considerably trickier.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mlsds

  • Newbie
  • *
  • Posts: 2
Re: Change Date in Photo
« Reply #2 on: March 21, 2014, 12:32:47 PM »
Works like a charm!
A huge thank you for your quick reply!