Timestamping photos based on filename?

by warsong   Last Updated December 20, 2017 16:01 PM

(I'm using Ubuntu 16.04 but this isn't necessarily Ubuntu-specific which is why I'm asking here and not on askubuntu)

I have a set of photos that I would like to date/time-stamp but some of them have missing EXIF data which I would like to somehow repopulate using exiftool or whatever else is more appropriate. The photo filenames are already correct (e.g. IMG_20120921_210143.jpg)

Is there a simple way to pass the filename to exiftool and populate the EXIF data so that I can then use that with Imagemagick to timestamp the photo?

Related Questions

Using ExifTool for Bulk Operations

Updated September 29, 2017 05:01 AM

remove all exif tags except specified

Updated May 09, 2017 21:01 PM

"Blur" photo metadata from command line?

Updated October 27, 2017 17:01 PM