How do I copy Picasa face name to XMP Subject without duplicates?

Started by Roblin, July 16, 2012, 09:01:13 PM

Previous topic - Next topic

Roblin

Picasa (V3.9) now stores the face data in XMP mwg-rs tags.  What I want to do is copy the face names to the XMP Subject tag where they are used as keywords.  That part I've managed to work out i.e

-Xmp:Subject<Xmp:RegionName

However, I have duplicate face names in my XMP RegionName, and I don't want to have duplicates in my XMP Subject tag.  I have duplicate face names in my photos such as 'Relative (Bob's)', 'Relative (Jane's)', and 'John or Jane Doe' for people who happened to end up in the photo.

What I'd like to know, is how do I get rid of the duplicates in the XMP Subject tag?  FYI:  I have 10,000+ photos with faces in them.  I am running ExifToolGUI on Windows 7.

Thanks

Phil Harvey

Sorry for the delay in responding.  I was on vacation.

This may be done with a user-defined tag that filters out the duplicate entries.  I can help later with a config file that does this, but you may be able to find something similar by searching in this forum.

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

Roblin

Thanks Phil.

I'll search the forum etc. and see if there's something I can build on.

Thanks,  Rob

Phil Harvey

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