ExifTool Forum

General => Metadata => Topic started by: TomaszZogala on October 18, 2023, 07:54:52 AM

Title: XMP-pur:Permissions
Post by: TomaszZogala on October 18, 2023, 07:54:52 AM
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?
Title: Re: XMP-pur:Permissions
Post by: Phil Harvey on October 18, 2023, 03:51:45 PM
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
Title: Re: XMP-pur:Permissions
Post by: StarGeek on October 18, 2023, 03:55:17 PM
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)
Title: Re: XMP-pur:Permissions
Post by: Phil Harvey on October 18, 2023, 05:21:17 PM
Ah yes.  That could be it.  Darned qualifiers.  I have to figure out how to handle them.

- Phil