XMP-Tags - differ between namespaces

Started by Flo, September 14, 2016, 05:04:04 AM

Previous topic - Next topic

Flo

Hello,

how can i differ tags which have the same name, but exist in different namespaces?
For example there are two 'VersionID' tags:

XMP xmpMM Tags -> xmpMM:VersionID
XMP ResourceRef Struct ->stRef:VersionID

exiftool -xmp -VersionID=versionid file.jpg <- adds the 'xmpMM:VersionID' tag
How can i differ the tags when adding it to a file?

Thanks ;)


Phil Harvey

Use the -G1 option when extracting to see the group1 name, then use this to prefix the tag name.  Also, you should add -a in case both exist:  For example:

> exiftool a.jpg -G1 -a -versionid
[XMP-xmpMM]     Version ID                      : test
> exiftool a.jpg -xmp-xmpmm:versionid=newValue
    1 image files updated
> exiftool a.jpg -G1 -a -versionid
[XMP-xmpMM]     Version ID                      : newValue


If you don't have a sample which already contains the information you want to write, then you need to consult the XMP tag documentation.

But note that the ResourceRef VersionID element doesn't exist on its own -- this structure is always a part of another tag.

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

Flo