ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jathri on June 26, 2023, 06:03:24 AM

Title: Write exif.DateOriginal and exif.TimeOriginal
Post by: jathri on June 26, 2023, 06:03:24 AM
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.
Title: Re: Write exif.DateOriginal and exif.TimeOriginal
Post by: Phil Harvey on June 26, 2023, 01:01:22 PM
The command you want me be:

exiftool "-datetimeoriginal<filemodifydate" DIR

- Phil
Title: Re: Write exif.DateOriginal and exif.TimeOriginal
Post by: StarGeek on June 26, 2023, 02:05:08 PM
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 (https://exiftool.org/forum/index.php?topic=14262.msg77199#msg77199) to add EXIF data based upon the filename.  That's assuming What's App filenames are still IMG-YEARMONTHDATE-WA####.jpg
Title: Re: Write exif.DateOriginal and exif.TimeOriginal
Post by: jathri on June 27, 2023, 06:40:00 AM
@Phil Harvey: Thank you. It works :)
@StarGeek: Thank you. It is good to know.