1.
exif:ImageUniqueID
The standard says the following "An identifier assigned uniquely to each image. It is recorded as a 32 character ASCII string, equivalent to hexadecimal notation and 128- bit fixed length.", but ExifTool allowed me to write a string much longer than 32 characters.
Is this normal behavior or should I control the length of the string myself?
2.
XMP-plus:ImageFileConstraints
XMP-plus:CreditLineRequired
XMP-plus:CopyrightStatus
What value should I pass to ExifTool for these tags?
In the standard, the values are specified as full URLs (example - http://ns.useplus.org/ldf/vocab/CS-PRO), but in the ExifTool specification only shortened (example - CS-PRO).
-XMP-plus:CopyrightStatus="http://ns.useplus.org/ldf/vocab/CS-PRO"
or
-XMP-plus:CopyrightStatus="CS-PRO"
?
1. Often ExifTool allows you to write whatever you want to a string-type tag. Adding constraints increases complaints. And when constraints are applied, they can often be avoided with the -n option.
2. This is FAQ 6 (https://exiftool.org/faq.html#Q6).
- Phil
Tell me, please, do you know of cases when restrictions were violated and this led to incorrect interaction with the software, for example in my case with 32 characters in Exif?
This is a loaded question...
I know of many cases where software interacts badly with some perfectly valid tag values.
- Phil
Thanks.
There is one more question.
Why does ExifTool write only CS-PRO if the standard value is http://ns.useplus.org/ldf/vocab/CS-PRO ?
PS D:\_temp> exiftool -XMP-plus:CopyrightStatus='Protected' .\IMG_1744.CR2
1 image files updated
PS D:\_temp> exiftool -XMP-plus:CopyrightStatus -n .\IMG_1744.CR2
Copyright Status : CS-PRO
PS D:\_temp>
Look at the raw XMP and you'll see that is what exiftool is writing.
C:\>exiftool -G1 -a -s -xmp -b y:\!temp\Test4.jpg
<?xpacket begin='�' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 12.42'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about=''
xmlns:plus='http://ns.useplus.org/ldf/xmp/1.0/'>
<plus:CopyrightStatus>http://ns.useplus.org/ldf/vocab/CS-PRO</plus:CopyrightStatus>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>
I understand, ExifTool adding to end of URL entering value.
Need only adding or CC-PRO (with -n) or Protected.
If I added full URL, I get this:
<plus:CopyrightStatus>http://ns.useplus.org/ldf/vocab/http://ns.useplus.org/ldf/vocab/CS-PRO</plus:CopyrightStatus>
Thanks.
This is explained in the first paragraph of the XMP PLUS tags documentation (https://exiftool.org/TagNames/PLUS.html#XMP), and the table shows the conversions that ExifTool uses.
- Phil
When you don't know what to look for, you may not notice the first paragraph. :)
When you are looking for the value of an option, then everything is simple, but when an unexpected incomprehensible behavior of the program, you run firstly to the forum. :-\
Thanks.