Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 553 Bytes

exiftools.md

File metadata and controls

11 lines (11 loc) · 553 Bytes

prepends 4 digit year to files ending in jpg in current dir

exiftool '-filename<DateTimeOriginal' -d %Y__%%f.%%e -ext jpg .

replaces exif date with 1984-01-01 12pm for all jpg in current dir

exiftool "-datetimeoriginal=1984:01:01 12:00:00" -ext jpg .

for loops to do the above two in folders starting with #YEAR:

year="19*"
for i in $year; do exiftool "-datetimeoriginal=$i:01:01 12:00:00" $i ; done
for i in $year; do rm $i/*_original; done
for i in $year; do exiftool '-filename<DateTimeOriginal' -d %Y__%%f.%%e -ext jpg $i ; done