Save Picasa facetags to "tags" in jpeg

Started by zgregc, July 29, 2013, 04:19:09 PM

Previous topic - Next topic

zgregc

I use Picasa to add face tags, but this data is only in xmp format. I would like to save the images with this data in tags category of exif type for jpeg files.  So when I right click in windows and do propertis->deails it shows up.

The exact name of the category (I think) is XMP MediaPro Tags and then the "people" subcategory.  In Picasa it shows as "People Tags"

How can I use ExifTool to do this?  I am a newbie so if you add more info than you would think it will help:)

Phil Harvey

It sounds like you want to copy from XMP-mediapro:People to some other tag.  I'm not sure where though.  There is no EXIF "People" tag.  The command would be something like this:

exiftool "-SOMETAG<xmp-mediapro:people" DIR

to do this to all files in directory DIR.

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

zgregc

Where to put this data is the tough question.

Picasa adds a rectangle which locates the face, I don't need the exact locations of the face, just the fact of who is in the photo.

If I right click on the photo and go to properties->details in Windows 7 (64 bit), I see under the first section "Description", a field called "Tags". I thought that "Tags" was an EXIF field but I seem to be wrong.

2 questions:
1) Where would you recommend copying this data of who is in the photos? I am looking for a solution that hopefully will work going forward (new versions of Windows).

2) How would I write to this "Tags" field that is view-able with the above procedure?

Phil Harvey

The recommended place for storing face information would be the XMP-mwg-rs region tags.  Microsoft uses its own XMP tags (unless they have changed now -- after all they are part of the MWG group).  (I have created a config file to translate between these two types of region structures, but I don't think this helps here.)

To write to the XMP-mwg-rs:RegionName, you would do this:

exiftool "-xmp-mwg-rs:regionname<xmp-mediapro:people" DIR

or, more simply (since there would likely be no conflicts with tags in other groups):

exiftool "-regionname<people" DIR

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

ryerman

Quote from: zgregc on July 30, 2013, 11:43:41 AM
Where to put this data is the tough question.......
.......... How would I write to this "Tags" field that is view-able with the above procedure?
That is a common problem when you are unfamiliar with how an application reads and/or writes metadata.
If you use an application (eg. Windows Explorer) to write data on the screen, you can then use ExifTool to display the metadata and see where it was written in the file.
exiftool -a -u -g1 "F:\file.jpg"

To show information in the "Tags" detail for JPG files in Windows 7 Explorer, write to any or all of
IFD0:XPKeywords
XMP-dc:Subject
IPTC:Keywords

You could try
exiftool "-XMP-dc:Subject<xmp-mediapro:people" "F:\file.jpg"

Jim
Windows 10 Home 64 bit, Exiftool v12.61