Change Value of a "Non-Standard" tag

Started by Zomalaja, July 23, 2019, 11:20:29 AM

Previous topic - Next topic

Zomalaja

I have 112 TIFF files that all contain the following tag:
Exif 0x9c65                     : New-PC\fdeutsch
I would like to change that tag in all files to:
Exif 0x9c65                     : NEW-PC\devon

I'm hoping to create a batch file, can anyone point me in the right direction ? I can get each filename with no problem.

Phil Harvey

First you need to create a user-defined tag to be able to write this.  See the NewEXIFTag definition in the sample config file for an example.  But you will need to determine the Writable format for the tag and which IFD it is in.  To get the IFD for WriteGroup in the config file, use this command:

exiftool -u -G1 -Exif_0x9c65 FILE

To get the Writable format, use the -v2 option and look for this line:

  | |     - Tag 0x9c65 (XX bytes, YYYY):

Here, YYYY will likely be "string[XX]", in which case you set "Writable" to "string" in the config file.

Then use your config file with whatever name you gave the tag to write the new value:

exiftool -config my.config -mytagname="NEW-PC\devon" FILESorDIRS

Although the backslash may cause complications if it is the escape character on whatever platform you are using.

Good luck.

- Phil

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).