ExifTool Forum

ExifTool => Newbies => Topic started by: Erik7 on February 14, 2021, 06:57:24 AM

Title: Use date in Filename to add into Exif data?
Post by: Erik7 on February 14, 2021, 06:57:24 AM
Hello,

I have about 500 photo's where there is no date/time in the Exif data. This makes it difficult to sort my photo's.
However, the filename contains the correct date, for example: IMG-20160102.jpg

My question is: Is it possible to add the date (out of the filename) into the Exif data? And also in bulk for the other photo's?

Thanks,
Erik

PS: Sorry for my bad English!  :-\
Title: Re: Use date in Filename to add into Exif data?
Post by: Phil Harvey on February 14, 2021, 09:11:30 AM
Hi Erik,

Try this:

exiftool "-alldates<${filename} 00:00:00" DIR

- Phil
Title: Re: Use date in Filename to add into Exif data?
Post by: Erik7 on February 15, 2021, 09:25:53 AM
Hi Phil,

This worked very well!

Thanks a lot for the help!