Image file name contains date taken - put into metadata

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
thatsameer
Posts: 18
Joined: Fri Aug 03, 2018 7:02 am

Image file name contains date taken - put into metadata

Post by thatsameer » Tue Nov 20, 2018 8:48 am

Hi all,

Not sure where to go because i've tried endless googles but have come back to my trusty community for help.

I have a bunch of images which have had their exif data removed - but the date the images were taken remain in the filename e.g. img-2018-03-23.jpg

I want to somehow take the date from the filename and put it into the metadata "date taken" property.

I'm at a stalemate. I have no idea what to do next. Everything i researched the only answers were the other way around i.e. from meta to filename. But i want filename to meta.

I looked around for powershell guidance but couldn't find, also adobe bridge.

any ideas at all??? thanks

User avatar
jvierra
Posts: 13506
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Image file name contains date taken - put into metadata

Post by jvierra » Tue Nov 20, 2018 9:02 am

There are numerous utilities on the net which can create tags. There are also libraries that can manage tags in code. Have you searched for these? I ran a simple search and returned hundreds of examples:

"powershell edit exif data"

Try it.

User avatar
jvierra
Posts: 13506
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Image file name contains date taken - put into metadata

Post by jvierra » Tue Nov 20, 2018 9:04 am

Also you can get a canned command here:

find-module ExifDateTime

Locked