ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Birdman on June 29, 2021, 04:09:47 PM

Title: Rename tag name
Post by: Birdman on June 29, 2021, 04:09:47 PM
Hello,
is there a way to directly rename a tag? Or is it necessary to write the contest to the new tag? When exporting a raw file from DxO PhotoLab 4 this programme changes the tag "description" to "description-x-repair" and i would like to rename it to the original name.
Title: Re: Rename tag name
Post by: Joanna Carter on June 29, 2021, 06:22:27 PM
I just exported a NEF file, that contains the description and imageDescription tags, to a jpg, from PL4 and got the same two tags written to the jpeg.

1. What is the exact tag in the original file?
2. What type of file is it?
3. Have you raised this in the DxO forums?
Title: Re: Rename tag name
Post by: StarGeek on June 29, 2021, 09:05:40 PM
As to Joanna's point 1, see FAQ #3 (https://exiftool.org/faq.html#Q3) for how to figure out the exact tag name.

If it is indeed different, you would have to copy the new tag back into Description.
exiftool "-Description<TAG" /path/to/files/

Also, if you can share an example file, I'd like to see this other tag.
Title: Re: Rename tag name
Post by: Birdman on July 02, 2021, 04:16:30 AM
Sorry for the delayed reply!
Quote from: Joanna Carter on June 29, 2021, 06:22:27 PM
I just exported a NEF file, that contains the description and imageDescription tags, to a jpg, from PL4 and got the same two tags written to the jpeg.

1. What is the exact tag in the original file?
2. What type of file is it?
3. Have you raised this in the DxO forums?
That is strange, but the DxO-Support told me the same thing, eventhough we are using the same PL4 version. Are you using PL4 on a mac or with Windows? I am running it under Windows 10, latest updates and exporting Canon CR3-files.

The exact name of the original tag in the CR3 reads: "[XMP-dc] Description"
After the export into a JPG (TIFF is the same): "[XMP-dc] Description-x-repair" The content is identical, but Adobe Bridge is not able to read the "Description-x-repair".

I am in contact with the DxO support and even did send them sample files. But it seems as if there is no renaming after export at their system (like at your system).


Quote from: StarGeek on June 29, 2021, 09:05:40 PM... Also, if you can share an example file, I'd like to see this other tag.
Here are the links to the sample files (large!):
Original CR3: www.mmbici.de/Bilder/Sample-Description.CR3 (http://www.mmbici.de/Bilder/Sample-Description.CR3)
Exported JPG: www.mmbici.de/Bilder/Sample-Description.jpg (http://www.mmbici.de/Bilder/Sample-Description.jpg)
Title: Re: Rename tag name
Post by: Phil Harvey on July 02, 2021, 06:34:26 AM
Hi Martin,

The tag in the JPG file is XMP-dc:Description, but the language code is set to "x-repair" for some reason.  To fix this, you can use this command:

exiftool "-xmp:description<description-x-repair" Sample-Description.jpg

See the 5th paragraph here (https://exiftool.org/TagNames/XMP.html) for an indication of what is happening.

- Phil
Title: Re: Rename tag name
Post by: Birdman on July 02, 2021, 07:37:13 AM
Hi all,

I solved it. Phil's hint to the language made me take a closer look to the preferences of DxO PL4. Under "Processing" the point "Preserve metadata in XMP sidecars for RAW images" was activated. By unselecting this the export files keep the name of the "Description" tag as in the original. I have to tell the DxO-Support, may be this is not as intended. Thanks to all of you!