Author Topic: Migrating from WPG to Lightroom 6 - People Tags  (Read 5797 times)

Mywayout

  • Newbie
  • *
  • Posts: 5
Migrating from WPG to Lightroom 6 - People Tags
« on: May 05, 2015, 08:48:23 AM »
I'm trying to get my people tags to show up completely in Lightroom 6. With help from this forum, I have them showing the loupe view but they don't show up as people tags in Lightroom. Some research (below) indicated there is an additional change I need to make via ExifTool but I am not a coder and am completely lost without being able to just snip code examples. From the adobe thread (jist of the topic pasted below), it seems that two more fields need to be updated. I need this to happen without overwriting any other data that might be in the keywords fields (I have only basic descriptive tags and none are nested).

I used this thread (the latest copy of code with the location transform) to copy my windows photos gallery people tags to the standard: http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4361.0.html

From a thread on Adobe's Forums:https://forums.adobe.com/message/7512379#7512379

Quote
"It doesn't apply the keyword to the photo because it wasn't specified in the photo's XMP:Subject or IPTC:Keywords fields.
 
The core issue is that LR represents named faces using both MWG regions and keywords, whereas Picasa apparently just uses MWG regions.  When LR imports a Picasa photo, it correctly imports the region and the name attached to the region.  But because Picasa didn't also record a keyword for that person, LR didn't attach any keyword to the photo on import.   I don't see anything in the MWG Guidance that prefers the behavior of one program over the other in this situation.
 
To work around this incompatibility, you could use Exiftool to copy values in the Region Name field into the XMP:Subject field before you import the photos into LR."

Can anyone help a poor lost soul?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14554
    • ExifTool Home Page
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #1 on: May 05, 2015, 09:00:33 AM »
It sounds like you should run this command before you do the import:

exiftool "-xmp:subject<regionname" DIR

This will add the region names to XMP:Subject.

- 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 ($).

Mywayout

  • Newbie
  • *
  • Posts: 5
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #2 on: May 05, 2015, 09:57:33 AM »
Thank you Phil! That sure looks easy enough. I'll give that a shot tonight.

These are mostly .jpgs. Does it work for those (I just though xmp was a RAW file thing)? Or do I have to move it to IPTC:keywords? From the quote I put in from the adobe forum - can it be either the xmp:subject OR ITPC Keyword? Or does it have to be in both?

If I should use ITPC instead of xmp, is the command below correct? After a test, I would run it for all directories so I added the -r

exiftool "-ITPC:Keywords<regionname" DIR -r

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14554
    • ExifTool Home Page
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #3 on: May 05, 2015, 10:19:18 AM »
These are mostly .jpgs. Does it work for those

Yes.

Quote
exiftool "-ITPC:Keywords<regionname" DIR -r

Close, but it is "IPTC", not "ITPC".

- 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 ($).

Mywayout

  • Newbie
  • *
  • Posts: 5
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #4 on: May 05, 2015, 10:23:18 AM »
Thanks.

Do you have a sense of whether I need to do both the IPTC AND the XMP? or is just XMP:subject good enough.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14554
    • ExifTool Home Page
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #5 on: May 05, 2015, 10:25:13 AM »
If in doubt, write MWG:Keywords.

- 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 ($).

Mywayout

  • Newbie
  • *
  • Posts: 5
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #6 on: May 05, 2015, 07:27:19 PM »
OK - I just did a test run with command:

exiftool "-xmp:subject<regionname" DIR -overwrite_origional_in_place -m -r

It overwrote the existing descriptive tags. Is there a way to ADD these name to the descriptive tags rather than replace the existing ones?


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14554
    • ExifTool Home Page
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #7 on: May 05, 2015, 08:26:24 PM »
Yes.  Use "+<" instead of "<".

- 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 ($).

Mywayout

  • Newbie
  • *
  • Posts: 5
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #8 on: May 05, 2015, 10:20:23 PM »
Worked wonderfully. Thank you!

Bunkermentality

  • Newbie
  • *
  • Posts: 3
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #9 on: December 22, 2016, 12:26:11 PM »
I'm brand new to ExifTool. I have a large WPG photo set which I'm attempting to migrate to Lightroom. I followed this thread eagerly and attempted a simple test.
I have a test folder with a single JPG which has a single face tag created using Windows Live Photo Gallery. As per the instruction I attempted

exiftool "-xmp:subject<regionname" DIR

This failed with error message "Warning: No writeable tags set from ./file.jpg

When I examined the tag set more closely I can see XMP tags "RegionRectangle" and "RegionPersonDisplayName" and "Subject" but no tag "regionname".

When I change the command line to include a tag name that I can see in the Xmp set then the command does work. This would explain the error being due to trying to reference a tag name that doesn't exist. But this doesn't explain how this could have possibly worked as a WPG migration solution for the other people in this thread.

Any advice would be most welcome. I'm using ExifTool 10.37

Paul

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14554
    • ExifTool Home Page
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #10 on: December 22, 2016, 03:05:18 PM »
RegionName is an MWG tag.   RegionPersonDisplayName is an Microsoft MP tag.  I don't know why WPG would change what it is writing, but maybe you are using different versions of WPG.  Note that Microsoft is a member of the MWG group, so they are involved with creating both specifications.

- 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 ($).

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2413
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #11 on: December 22, 2016, 03:31:03 PM »
While I haven't taken time to test it, it was my understanding that Windows Photo Gallery wrote the Microsoft MP region tags.  Picasa was the program writing the MWG tags.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

Bunkermentality

  • Newbie
  • *
  • Posts: 3
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #12 on: December 23, 2016, 11:55:17 AM »
Thanks for taking the time to reply. All of my face tags are XMP and have been written using Windows Photo Gallery 2012 16.4.3528.33. I can see the XMP tags RegionRectangle and RegionPersonalDisplayName in the XMP tag set. I can see that I need to convert these so that they can be used by Lightroom.

I've done some experimenting with migrating to Lightroom via Picasa. Picasa makes a reasonable fist of finding and converting the face tags but it doesn't do all of them. This seems to be due to the Face Detection Cluster and Suggestion Threshold settings. This approach gets most tags correct but I have 15,000 photos so "most" still leaves a lot of manual work.

So I don't trust going via Picasa. Hence the problem becomes quite simple (I hope). How to convert the XMP RegionRectangle and RegionPersonalDisplayName tages to something that Lightroom is happy with?

Surely I'm not the first (by a long way) to want to tackle this, seemingly, simple conversion. But I have yet to find a post that explains how.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14554
    • ExifTool Home Page
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #13 on: December 23, 2016, 12:36:49 PM »
Assuming that Lightroom recognizes MWG regions, I think that what you want is this (a config file included in the full ExifTool distribution that converts between WLPG and MWG regions).

- 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 ($).

Bunkermentality

  • Newbie
  • *
  • Posts: 3
Re: Migrating from WPG to Lightroom 6 - People Tags
« Reply #14 on: January 26, 2017, 07:14:26 AM »
I've just found the time to come back to this. Your link leads to the convert_regions.config file and this seems to work very well.

Thank you for taking the time to reply. You've been a huge help.

Paul