About the values of some tags

Started by Jom, July 28, 2022, 11:42:05 AM

Previous topic - Next topic

Jom

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"
?

Phil Harvey

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.

- 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 ($).

Jom

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?

Phil Harvey

This is a loaded question...

I know of many cases where software interacts badly with some perfectly valid tag values.

- 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 ($).

Jom


Jom

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>

StarGeek

#6
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'?>
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Jom

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.

Phil Harvey

This is explained in the first paragraph of the XMP PLUS tags documentation, and the table shows the conversions that ExifTool uses.

- 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 ($).

Jom

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.