ExifTool Forum

ExifTool => Newbies => Topic started by: kali on May 02, 2021, 09:25:17 AM

Title: Add tag from filename
Post by: kali on May 02, 2021, 09:25:17 AM
Hi,

I would like to complete the "Shooting" field using the file name.

(https://i.imgur.com/Be8b7bD.png)

Could you tell me the syntax to use ?

Thank you and have a nice day
Title: Re: Add tag from filename
Post by: Luuk2005 on May 02, 2021, 11:21:17 AM
exiftool -ext jpg -overwrite_original -DateTimeOriginal"<Filename"  "Filespec or FolderPath"
Title: Re: Add tag from filename
Post by: StarGeek on May 02, 2021, 11:31:17 AM
This is covered by the third paragraph in FAQ #5 (https://exiftool.org/faq.html#Q5).  As Luuk2005 says, you can copy the filename directly into the timestamp tag.  Exiftool extract the numbers and take care of the formatting.