Main Menu

XMP-pur:Permissions

Started by TomaszZogala, October 18, 2023, 07:54:52 AM

Previous topic - Next topic

TomaszZogala

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?

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

"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

Phil Harvey

Ah yes.  That could be it.  Darned qualifiers.  I have to figure out how to handle them.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).