I have taken 300 photos at an event. Afterwards I noticed that the date was set incorrectly in the camera - one day off. There are lots of EXIF data in the files, not just creation dates.
How can I change only the dates contained within all relevant EXIF fields to correct the date (minus one day exactly)?
No other data should be changed by this modification!
Perhaps for each file I could dump the data (exiftool or exiv2?), then modify the dump (with awk?), then replace EXIF data from the modified dump? But how?
EDIT:
There is a lot of data per file:
# exiftool IMG_9040.JPG | wc
289 2218 13996
Lots of it are dates:
# exiftool IMG_9040.JPG | grep 2021 | grep -v File
Modify Date : 2021:11:02 17:06:58
Date/Time Original : 2021:11:02 17:06:58
Create Date : 2021:11:02 17:06:58
Create Date : 2021:11:02 17:06:58.24+01:00
Date/Time Original : 2021:11:02 17:06:58.24+01:00
Modify Date : 2021:11:02 17:06:58.24+01:00
I wish to change all of these.