Write exif.DateOriginal and exif.TimeOriginal

Started by jathri, June 26, 2023, 06:03:24 AM

Previous topic - Next topic

jathri

Images received via WA miss exif metadata. So I would like to write exif.DateOriginal and exif.TimeOriginal (in its natural formats) to all images in specified folder where there is no such metadata available. This data should be taken from date last modified (Windows file system metadata). Can this be done using ExifTool (e.g. using Windows CMD)? Note: Autohotkey solution is also acceptable.

Phil Harvey

The command you want me be:

exiftool "-datetimeoriginal<filemodifydate" DIR

- 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 ($).

StarGeek

Quote from: jathri on June 26, 2023, 06:03:24 AMImages received via WA miss exif metadata.

Assuming you mean What's App, then see this post to add EXIF data based upon the filename.  That's assuming What's App filenames are still IMG-YEARMONTHDATE-WA####.jpg
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

jathri

@Phil Harvey: Thank you. It works :)
@StarGeek: Thank you. It is good to know.