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 ;)
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
Thanks for the fast answer :)