ExifTool Forum

ExifTool => Newbies => Topic started by: DAV on February 29, 2020, 02:00:11 PM

Title: How do I batch change only the year on my photos?
Post by: DAV on February 29, 2020, 02:00:11 PM
I want to change only the year on many photos at a time without changing the day, month or time. I don't want to shift the year I want to change it. I am using a mac and I want to import these images to the photos application and I want them to appear in the correct chronological order. So I think the year needs to be changed for the image creation/capture date.

I am clueless with this application so could you please give me the exact line I will need to type into terminal on mac to make this happen. (For example in a folder named test on my desktop and the year I want is 2015)
Title: Re: How do I batch change only the year on my photos?
Post by: StarGeek on February 29, 2020, 02:18:12 PM
Try this on a few test files to see if you does what you want.  Replace the 2020 with the year that is already in the file.  Replace "/path/to/files/" with the actual path to the files:
exiftool -TagsFromFile @ -time:all -api 'filter=s/^2020/2015/' /path/to/files/
Title: Re: How do I batch change only the year on my photos?
Post by: DAV on March 04, 2020, 02:30:55 PM
No this wont work because the problem is the years are not all the same. Thats the problem I am trying to solve by this
Title: Re: How do I batch change only the year on my photos?
Post by: StarGeek on March 04, 2020, 03:20:07 PM
The try this, but be careful, it's not so forgiving if the data isn't what you think it is

exiftool -TagsFromFile @ -time:all -api 'filter=s/^\d{4}/2015/' /path/to/files/