hello,
I'm a fairly new ExifTool user, but I'm becoming a big enthusiast. I would like to ask about a proper way of setting xmp:pur-permissions. I would like to achieve an effect like the example on the https://www.w3.org/submissions/prism/#_Toc46323689 but I believe I failed.
trying to find an answer I tried commands like:
exiftool -addtagsfromfile @ "-XMP-pur:permissions={distributionChannel=print, code=C1}" "-XMP-pur:permissions={distributionChannel=web, code=C2}" image.jpg
or
exiftool -XMP-pur:permissions=[{pur=[{distributionChannel=web,code=c2}]},{pur=[{distributionChannel=print,code=c1}]}] image.jpg
so I would like to ask how can I do it properly?
There may be some confusion between XML and XMP. I think your reference is for XML. ExifTool defines XMP-pur:Permissions as a Bag of simple strings, but it is a structure in your XML example. Do you have an example file with XMP containing this information?
- Phil
Might the data they want to write be qualifiers?
See pur:expirationDate with date and qualifier (https://exiftool.org/forum/index.php?topic=11571.0)
Ah yes. That could be it. Darned qualifiers. I have to figure out how to handle them.
- Phil