mass changing EXIF of jpg

English support forum

Moderators: white, Hacker, petermad, Stefan2

chiara.codagnone
Junior Member
Junior Member
Posts: 12
Joined: 2023-01-29, 03:38 UTC

mass changing EXIF of jpg

Post by *chiara.codagnone »

Hi,

I was wondering if there was a way to change the Date Taken of .jpg with regex as you do with multi rename tool.

I have a thousand photos which are named with the correct date (20130320 for exemple for 20 march 2013) but has not the "Date Acquired" field filled, or it is filled with strange values as "01/01/1946)

I Think it is important to fill that field, because, for exemple, If you upload a photo on google photos, and you download it back, Date of Creation and Date of Modify will change, but Date of Acquisition will stay.

It is a field I can see and use through tc with shelldetails plugin and i can modify on hand.
I cannot modify all the photos on by one selecting them and manually inserting the date, (right-click -> propriety -> date of acquisition/date media creation -> modify)
I would love to find a way to do the same thing I do with multi rename tool when I want to put the date as the name, but the opposite, the name as the date.

Any ideas?

[SOLUTION]
1. Install Plugin jpg-comment
2. Select the jpeg files, go to >Change Attributes
3. jpg-comment DateTimeOriginal -> [=tc.name5-8]/[=tc.name3-4]/[tc.name1-2]

solid wrote: 2023-01-29, 20:47 UTC What you can do is set the write date of the file from filename with change attributes dialog. Although not officially supported, TC will accept filedate values from plugins if properly formatted. From your example, the syntax for the date will be [=tc.name:7-8].[=tc.name:5-6].[=tc.name:1-4] (change dots as date separators if necessary according to your system locale)

[OPEN QUESTION (2023/02/04)]
I still didn't find any plugins which make you change .mp4, .png, m4v date of shooting attributes.
The only plugin which works with "Change Attributes" tc function is JPG-comment, which fields refer just to .jpg

I have other plugins such as shelldetails for multi rename tool which show the fields I want to modify, but still can't find one which you can use in "Change attributes" function for .mp4.
Last edited by chiara.codagnone on 2023-02-04, 20:21 UTC, edited 10 times in total.
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: mass changing EXIF of jpg

Post by *solid »

I'm not aware of a way that TC can write to EXIF field.

What you can do is set the write date of the file from filename with change attributes dialog. Although not officially supported, TC will accept filedate values from plugins if properly formatted. From your example, the syntax for the date will be [=tc.name:7-8].[=tc.name:5-6].[=tc.name:1-4] (change dots as date separators if necessary according to your system locale)

Afterwards, you can just use any utility that can take date from file and set it as date taken/digitized in the EXIF field. (XnView MP can do it with GUI, or Jexif from command line)
chiara.codagnone
Junior Member
Junior Member
Posts: 12
Joined: 2023-01-29, 03:38 UTC

Re: mass changing EXIF of jpg

Post by *chiara.codagnone »

I didn't know I could use [] for Changing attributes :) Thanks!
Last edited by chiara.codagnone on 2023-02-04, 20:01 UTC, edited 1 time in total.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: mass changing EXIF of jpg

Post by *Fla$her »

chiara.codagnone wrote: 2023-01-29, 03:43 UTCwhich is a field i can manage through tc with EXIF plugin and i can modify on hand.
The EXIF plugin only returns information, it cannot edit.
chiara.codagnone wrote: 2023-01-30, 15:14 UTCI didn't know I could use [] for attributes :)
And how did it help you with the Date Acquired edit?
Overquoting is evil! 👎
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: mass changing EXIF of jpg

Post by *sqa_wizard »

Sure, EXIF plugin does not support editing, but ImageMetaData plugin does.
#5767 Personal license
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: mass changing EXIF of jpg

Post by *Fla$her »

2sqa_wizard
This is known, but it also won't help with the "Date Acquired".
Overquoting is evil! 👎
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: mass changing EXIF of jpg

Post by *solid »

2Fla$her
Why it won't help?

OP wants to set the Exif field to a date that is part of the filename. I haven't used ImageMetaData plugin, but if it supports writing to EXIF file from Change attributes dialog it can be done in one step and without any external tools.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: mass changing EXIF of jpg

Post by *Fla$her »

2solid
Because jpg-comment doesn't have such a field/tag. I watched it even before your first answer.
Overquoting is evil! 👎
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: mass changing EXIF of jpg

Post by *Gral »

Did you try click on "Microsoft Photo schema (MicrosoftPhoto)"?
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: mass changing EXIF of jpg

Post by *Fla$her »

No in the plugin itself. See in jpg-comment.lng.
Overquoting is evil! 👎
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: mass changing EXIF of jpg

Post by *solid »

2Fla$her
I don't understand, what jpg-comment?

EXIF field of Date taken/digitized/acquired exist since the introduction of the standard. It is the most basic field.
It can be found under different names in different software, but it is the same field.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: mass changing EXIF of jpg

Post by *Fla$her »

solid wrote: 2023-01-30, 19:50 UTCI don't understand, what jpg-comment?
I didn't understand the question.
solid wrote: 2023-01-30, 19:50 UTCbut it is the same field.
Who told you that? These are all different fields:
Exif.Photo.DateTimeOriginal
Exif.Photo.DateTimeDigitized
Xmp.MicrosoftPhoto.DateAcquired
Overquoting is evil! 👎
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: mass changing EXIF of jpg

Post by *Gral »

As for me the best solution would probably be as usual exiftool, e.g.

Code: Select all

exiftool "-DateAcquired<FileName" -d "%Y%m%d.%%e"
chiara.codagnone
Junior Member
Junior Member
Posts: 12
Joined: 2023-01-29, 03:38 UTC

Re: mass changing EXIF of jpg

Post by *chiara.codagnone »

I still can't modify mp4 and png attributes from "change attributes". Any ideas?

In change attributes i only see the fields of JPG comment plugin and not others
chiara.codagnone
Junior Member
Junior Member
Posts: 12
Joined: 2023-01-29, 03:38 UTC

Re: mass changing EXIF of jpg

Post by *chiara.codagnone »

Gral wrote: 2023-01-30, 20:07 UTC As for me the best solution would probably be as usual exiftool, e.g.

Code: Select all

exiftool "-DateAcquired<FileName" -d "%Y%m%d.%%e"
Where do you put the commands? Sorry, i'm new in total commander
Post Reply