News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Change Date in Photo

Started by mlsds, March 20, 2014, 07:11:37 PM

Previous topic - Next topic

mlsds

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

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/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mlsds

Works like a charm!
A huge thank you for your quick reply!