Hi,
I'd like to rename my pictures the following way:
- DateTimeOriginal_Make.jpg
An output example:
- 20130914T074335_Canon.jpg
To achieve this I tried the following:
exiftool "-FileName<DateTimeOriginal" -d "%Y%m%dT%H%M%S.%%le" myimage.jpgAnd it works fine but the Make information is missing, so:
exiftool "-FileName=%f_${Make}.%le" 20130914T074335.jpgBut this doesn't work! I just get: 20130914T074335_.jpg
Make tag is present for sure:
exiftool -Make 20130914T074335.jpg
ExifTool Version Number : 9.04
Make : Canon
Can it be an exiftool version issue?
Also, is there a way to merge in one command?
Something similar:
exiftool "-FileName<DateTimeOriginal_${make}.%le" -d "%Y%m%dT%H%M%S" myphoto.jpgThanks for your help and for the great tool!!!
Evan
Just updated to:
- ExifTool Version Number : 9.37
Same behaviour.
Evan
WOAH!
exiftool -v5 '-filename<${DateTimeOriginal}_${Make}.%le' -d "%Y%m%dT%H%M%S" image.jpg
Hi Evan,
Glad you figured this out. I might suggest adding a semicolon to filter out characters in the Make string that might be illegal in file names: ${Make;}
- Phil
Thank you very much Phil,
the final command is:
exiftool '-filename<${DateTimeOriginal}_${make;tr/ /_/;s/__+/_/g}.%le' -d "%Y%m%dT%H%M%S" picture.jpg
and output example:
20130914T170119_NIKON_CORPORATION.jpg
20130914T170122_Canon.jpg
and works like a charm! :D
Thanks again for exiftool!
Kind Regards,
Evan