Changing year/month of JPGs in a batch

Started by cyberbub, January 04, 2024, 11:46:26 AM

Previous topic - Next topic

cyberbub

Hi all,

Has anyone got any syntax for changing the year and month of a batch of JPGs, please? I don't want/need to change the dates or times, particularly.

The year/month fields I need to change are those that will mean that when I upload the JPGs (360-degree type) to Google Streetview, it will display a different year and month to the one I actually shot the photos.

Thanks very much for any assistance!

Phil Harvey

You can use a command like this (for example) to add 1 year and 2 months to the common date/time tags in a JPEG image:

exiftool -alldates+="1:2:0 0" FILE

The last "0" is for the time (shift by 0 hours).  Or you can use "-=" to subtract the specified number of years:months.

- 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 ($).