ExifTool Forum

General => Metadata => Topic started by: Storhaug on October 13, 2010, 08:58:08 AM

Title: names of persons in photo
Post by: Storhaug on October 13, 2010, 08:58:08 AM
I want to store the names of the persons shown in the photo. Seemingly two tags are available for that purpose:

-XMP-iptcExt:PersonInImage
-XMP-mediapro:People


Which one shall I use?
Or another one?
Title: Re: names of persons in photo
Post by: Phil Harvey on October 13, 2010, 09:05:03 AM
I would go with PersonInImage since this is a standard IPTC extension, rather than People which is a proprietary iView MediaPro tag.

- Phil
Title: Re: names of persons in photo
Post by: Storhaug on October 13, 2010, 09:52:16 AM
Thanks for your superfast reply.
Do I understand correct that -XMP-iptcExt:PersonInImage is an XMP-tag despite the "iptc" in its name?
I am asking because I read the FAQ section 10 about character sets. So, I wonder whether -XMP-iptcExt:PersonInImage uses UTF-8 (XMP), or cp1252 (IPTC) ?
Title: Re: names of persons in photo
Post by: Phil Harvey on October 13, 2010, 11:40:21 AM
There is some confusion now that the recent IPTC standard has moved to using XMP.  The tags that ExifTool calls IPTC are the older IPTC-NAA IIM specification, but the newer IPTC Photo Metadata standard uses the XMP format.

- Phil
Title: Re: names of persons in photo
Post by: Storhaug on October 13, 2010, 10:13:49 PM
So, do I understand right that it is currently not clear whether the tag uses UTF-8 or cp1252 ?
Title: Re: names of persons in photo
Post by: Phil Harvey on October 14, 2010, 07:23:18 AM
It doesn't sound like you understand.  XMP always uses UTF-8 internally but you can enter values using other character sets with the -charset option and ExifTool will do the conversion for you.

- Phil
Title: Re: names of persons in photo
Post by: Storhaug on October 14, 2010, 11:36:49 AM
Thanks for your patience. My Linux bash shell has these environment variables set:

LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8


So, do I understand right that I do not need to use -charset because bash is using UTF-8 and that's the default for XMP ?
Title: Re: names of persons in photo
Post by: Phil Harvey on October 14, 2010, 11:59:41 AM
Correct, but for the wrong reason.

The relevant point is that UTF-8 is the default for reading/writing values via ExifTool.  ExifTool converts the encodings used by the various metadata formats, so the actual details of the encoding used by XMP do not change the way you read/write values via ExifTool.

I guess I should have been more clear.

- Phil