Is there anything that I'm doing wrong? I know there is an alternative date shift option however not all the files i'm looking to modify have the same current year.
Last edit: Terrance Bennett 6 days ago
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You use an equal sign when you want to set a tag to a static value, but you use a greater/less than sign when you want to copy one tag to another. In your command, you are trying to set ModifyDate to a value of ${EXIF:ModifyDate; substr($_,0,4)="2009"
not trying to copy the changed ModifyDate back onto the original tag.
I'm trying to change multiple date tag's year but am being receiving an error that i'm supplying invalid date/time.
shows what the current value is.
shows that it can be modified successfully with the Advanced formatting feature, whilst retaining the same formatting structure
Is there anything that I'm doing wrong? I know there is an alternative date shift option however not all the files i'm looking to modify have the same current year.
Last edit: Terrance Bennett 6 days ago
This is Common Mistake #5c
You use an equal sign when you want to set a tag to a static value, but you use a greater/less than sign when you want to copy one tag to another. In your command, you are trying to set
ModifyDateto a value of${EXIF:ModifyDate; substr($_,0,4)="2009"not trying to copy the changed
ModifyDateback onto the original tag.Try:
exiftool '-EXIF:ModifyDate<${EXIF:ModifyDate; substr($_,0,4)="2009"}' ./2009_080823-053923-00_OCF.jpg