Write EXIF date/time from filenames?

Started by yusheng, July 29, 2015, 04:33:23 AM

Previous topic - Next topic

yusheng

I have a bunch of JPGs with no EXIF and I want to write the date/time stamps to them from the filename.

All the filenames are in this format:

YYYYMMDDHHMMSS.jpg

example: 20120103230412.jpg

How can I use a single command to write all the EXIF tags to an entire directory?


Phil Harvey

exiftool "-datetimeoriginal<filename" DIR

There are many other threads in this forum about this topic.  Here are some: 1, 2, 3, 4

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).