#1 2021-11-27 10:09

BarbaraD
Member
Registered: 2021-11-27
Posts: 2

Insert the date taken of a JPG file in the file name

Hello, I tried to use the INSERT FUNCTION using a MetaTag, but the one I need it is not in the list.
I need the Meta Tag Origin_DateTaken.
I imagine it is possible to extract and insert in the name through a Pascal script, but I do not know how to do it.
What would be the script to extract the date the photo was taken and insert it as YYYY-MM-DD at the beginning of the file's name?
Thank you for your help!

Offline

#2 2021-11-27 13:54

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Insert the date taken of a JPG file in the file name

Hello and welcome.

For to insert something use
https://www.den4b.com/wiki/ReNamer:Rules:Insert

For to extract the date of JPG image use the EXIF_Date meta tag
https://www.den4b.com/wiki/ReNamer:Meta_Tags


Info:
The EXIF_Date meta tag will attempt to extract "DateTimeOriginal" first, but if it is empty it will fall back to "DateTime".
https://www.den4b.com/forum/viewtopic.p … 807#p11807



Related to that you may want to check out the settings:
http://www.den4b.com/wiki/ReNamer:Progr … s_settings
Meta tags settings
Date format    
Sets the date format for ReNamer's use. (The selected date format will be used for naming files.)



For more info search the forum for Image Date Taken EXIF_Date, f.ex.:
https://www.den4b.com/forum/viewtopic.p … 9563#p9563


For PascalScript search the forum with that keywords or see
> https://www.den4b.com/wiki/ReNamer
> https://www.den4b.com/wiki/ReNamer:Scripts   >>> 3rd party libraries    > Extract EXIF/IPTC/XMP tags from any images



For any question please ask.


HTH?


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2021-11-27 14:23

BarbaraD
Member
Registered: 2021-11-27
Posts: 2

Re: Insert the date taken of a JPG file in the file name

Thank you for your help!

Offline

Board footer

Powered by FluxBB