Image file name contains date taken - put into metadata

Ask your 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.
This topic is 5 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
thatsameer
Posts: 18
Last visit: Thu Apr 18, 2019 7:07 am

Image file name contains date taken - put into metadata

Post by thatsameer »

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
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

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

Post by jvierra »

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.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

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

Post by jvierra »

Also you can get a canned command here:

find-module ExifDateTime
This topic is 5 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked