XAP Identifier

Started by janice, September 07, 2015, 02:41:13 AM

Previous topic - Next topic

janice

Hi,

I have a problem with generating xmp values. I need to add two xap Identifier tag. I'm using this command:
C:\temp\exiftool.exe -L -xmp-Microsoft:DateAcquired="2015-09-07T08:27:02" -xmp-dc:title="Title1" -xmp-dc:source="Title2" -xmp-dc:relation="original.jp2" -xmp-xap:Identifier="test1" -xmp-xap:Identifier="test2" "C:\temp\original.jp2"

I get an error:
Tag 'xmp-xap:Identifier' does not exist

So I tried with this command (without xap namespace):
C:\temp\exiftool.exe -L -xmp-Microsoft:DateAcquired="2015-09-07T08:27:02" -xmp-dc:title="Title1" -xmp-dc:source="Title2" -xmp-dc:relation="original.jp2" -xmp:Identifier="test1" -xmp:Identifier="test2" "C:\temp\original.jp2"

I this case it writes only one value for dc:identifier value "test2" and it ignores value "test1". I'm aware that old "xap", etc., prefixes are translated to "xmp". But is there a way I can get this working?

Regards,
Janice





StarGeek

Looking at the XMP tags, it appears that there are two types of Identifier tags.  Identifier appears to default to XMP-dc:Identifier which is a simple string tag, but the tag you seem to want is XMP-xmp:Identifier, which is a list type tag.

So try -XMP-xmp:Identifier="test1" -XMP-xmp:Identifier="test2".  That seems to work here, though if there is already an XMP-dc:Identifier tag, that will take precedent unless you add -a when you view the results.

c:\>exiftool -P -overwrite_original -progress -Identifier="hello" -Identifier="there" X:\!temp\Test3.jpg
======== X:/!temp/Test3.jpg [1/1]
    1 image files updated

c:\>exiftool -identifier X:\!temp\Test3.jpg -g1
---- XMP-dc ----
Identifier                      : there

c:\>exiftool -P -overwrite_original -progress -xmp-xmp:Identifier="hello" -xmp-xmp:Identifier="there" X:\!temp\Test3.jpg
======== X:/!temp/Test3.jpg [1/1]
    1 image files updated

c:\>exiftool -identifier X:\!temp\Test3.jpg -g1 
---- XMP-dc ----
Identifier                      : there

c:\>exiftool -identifier X:\!temp\Test3.jpg -g1  -a
---- XMP-dc ----
Identifier                      : there
---- XMP-xmp ----
Identifier                      : hello, there


"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

janice