ExifTool Forum

ExifTool => Newbies => Topic started by: Flo on September 14, 2016, 05:04:04 AM

Title: XMP-Tags - differ between namespaces
Post by: Flo on September 14, 2016, 05:04:04 AM
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 ;)

Title: Re: XMP-Tags - differ between namespaces
Post by: Phil Harvey on September 14, 2016, 07:15:10 AM
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 (https://exiftool.org/TagNames/XMP.html).

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

- Phil
Title: Re: XMP-Tags - differ between namespaces
Post by: Flo on September 14, 2016, 08:43:40 AM
Thanks for the fast answer :)