Is it possible to use metadata to add in a missing filename extension?
The following does not work, probably because the arguments and syntax is all wrong:
exiftool -ext '*' -if '$FileType=JPEG' -filename='%%f.jpg' 'DIR'
The idea being that there may be FileType=JPEG or FileType=TIFF etc. Hoping to get one to work, before looking into multiples.
You're using a numeric comparison = instead of a string comparison eq.
But Phil added a simpler solution a couple years ago.
exiftool -ext * "-filename<%f.$fileTypeExtension" DIR
Fantastic, thank you StarGeek!