Main Menu

Merge two tags

Started by Linus_C, September 14, 2017, 08:31:33 AM

Previous topic - Next topic

Linus_C

Hi,
I have a large collection of pictures where different programs has written tags. Now I have somehow gotten two different names of nametags for myself. Pictures with me tagged or as a region can be either "Linus Claesson" or "Linus Claesson2". This is annoying.
When I try to merge the two in Digicam I get the pop-up window with "Another tag with the same name already exists".

Can I use exiftool to replace all instances of the tag "Linus Claesson2" with "Linus Claesson"  in a file? Or even recursivly on all files in a folder structure?

StarGeek

Yes, it's possible.

You don't mention where your region tags are held but this is the command I use to replace face names in both MWG and MP regions.

exiftool -r -struct -tagsfromfile @ -RegionInfoMP -RegionInfo -api "Filter=s/Linus Claesson2/Linus Claesson/g"

To be honest, I'm probably overdoing it by copying the full region info (RegionName and RegionPersonDisplayName probably would have been enough), but I haven't taken the time to test it out.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype