I've run into a handful of images (maybe 10 out of over 60k) that I'm unable to write a DocumentID to. It's not a huge deal, but just wanted to point it out in case it reveals a larger issue.
I'm running version 11.01.
Here are the commands I've tried and the output:
[root@bigguy tools]# exiftool -ver
11.01
[root@bigguy tools]# exiftool -s -OriginalDocumentID /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
[root@bigguy tools]# exiftool -v -v -v -OriginalDocumentID=a7999a880090e6c8abdd39d6ec1fc2b3 /tmp/IMG_0129.JPG
Writing XMP-xmpMM:OriginalDocumentID
======== /tmp/IMG_0129.JPG
Rewriting /tmp/IMG_0129.JPG...
Editing tags in: APP1 XMP
Creating tags in: APP1 XMP
JPEG APP0 (14 bytes):
0000: 4a 46 49 46 00 01 01 01 00 48 00 48 00 00 [JFIF.....H.H..]
JPEG APP1 (5882 bytes):
0000: 45 78 69 66 00 00 4d 4d 00 2a 00 00 00 08 00 0d [Exif..MM.*......]
0010: 01 0f 00 02 00 00 00 06 00 00 00 aa 01 10 00 02 [................]
0020: 00 00 00 09 00 00 00 b0 01 12 00 03 00 00 00 01 [................]
0030: 00 01 00 00 01 1a 00 05 00 00 00 01 00 00 00 ba [................]
0040: 01 1b 00 05 00 00 00 01 00 00 00 c2 01 28 00 03 [.............(..]
0050: 00 00 00 01 00 02 00 00 01 31 00 02 00 00 00 04 [.........1......]
0060: 37 2e 31 00 01 32 00 02 00 00 00 14 00 00 00 ca [7.1..2..........]
[snip 5770 bytes]
JPEG APP1 (14199 bytes):
0000: 68 74 74 70 3a 2f 2f 6e 73 2e 61 64 6f 62 65 2e [http://ns.adobe.]
0010: 63 6f 6d 2f 78 61 70 2f 31 2e 30 2f 00 3c 78 3a [com/xap/1.0/.<x:]
0020: 78 6d 70 6d 65 74 61 20 78 6d 6c 6e 73 3a 78 3d [xmpmeta xmlns:x=]
0030: 22 61 64 6f 62 65 3a 6e 73 3a 6d 65 74 61 2f 22 ["adobe:ns:meta/"]
0040: 20 78 3a 78 6d 70 74 6b 3d 22 58 4d 50 20 43 6f [ x:xmptk="XMP Co]
0050: 72 65 20 35 2e 34 2e 30 22 3e 0d 0a 09 3c 72 64 [re 5.4.0">...<rd]
0060: 66 3a 52 44 46 20 78 6d 6c 6e 73 3a 72 64 66 3d [f:RDF xmlns:rdf=]
[snip 14087 bytes]
JPEG APP1 (1936 bytes):
0000: 68 74 74 70 3a 2f 2f 6e 73 2e 61 64 6f 62 65 2e [http://ns.adobe.]
0010: 63 6f 6d 2f 78 61 70 2f 31 2e 30 2f 00 3c 78 3a [com/xap/1.0/.<x:]
0020: 78 6d 70 6d 65 74 61 20 78 6d 6c 6e 73 3a 78 3d [xmpmeta xmlns:x=]
0030: 22 61 64 6f 62 65 3a 6e 73 3a 6d 65 74 61 2f 22 ["adobe:ns:meta/"]
0040: 20 78 3a 78 6d 70 74 6b 3d 22 58 4d 50 20 43 6f [ x:xmptk="XMP Co]
0050: 72 65 20 35 2e 34 2e 30 22 3e 0d 0a 09 3c 72 64 [re 5.4.0">...<rd]
0060: 66 3a 52 44 46 20 78 6d 6c 6e 73 3a 72 64 66 3d [f:RDF xmlns:rdf=]
[snip 1824 bytes]
Rewriting XMP
Warning = [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto
Warning = [Minor] Duplicate XMP property: mwg-rs:Regions/mwg-rs:RegionList/rdf:Seq/rd[snip]
[XMP rewritten with no changes]
JPEG DQT (65 bytes):
JPEG DQT (65 bytes):
JPEG SOF0:
JPEG DHT (29 bytes):
JPEG DHT (179 bytes):
JPEG DHT (29 bytes):
JPEG DHT (179 bytes):
JPEG SOS
Nothing changed in /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
0 image files updated
1 image files unchanged
[root@bigguy tools]# exiftool -s -OriginalDocumentID /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
[root@bigguy tools]# exiftool -exif:all= -tagsfromfile @ -exif:all -unsafe -thumbnailimage /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
1 image files updated
[root@bigguy tools]# exiftool -s -OriginalDocumentID /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
[root@bigguy tools]# exiftool -OriginalDocumentID=a7999a880090e6c8abdd39d6ec1fc2b3 /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
0 image files updated
1 image files unchanged
[root@bigguy tools]# exiftool -s -OriginalDocumentID /tmp/IMG_0129.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - /tmp/IMG_0129.JPG
[root@bigguy tools]#
I was able to get it to write OriginalDocumentID to your image by adding -m to the command.
C:\>exiftool -g1 -a -s -OriginalDocumentID "Y:\!temp\IMG_0130.JPG"
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - Y:/!temp/IMG_0130.JPG
C:\>exiftool -P -overwrite_original -OriginalDocumentID=a7999a880090e6c8abdd39d6ec1fc2b3 "Y:\!temp\IMG_0130.JPG"
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - Y:/!temp/IMG_0130.JPG
0 image files updated
1 image files unchanged
C:\>exiftool -P -overwrite_original -OriginalDocumentID=a7999a880090e6c8abdd39d6ec1fc2b3 "Y:\!temp\IMG_0130.JPG" -m
1 image files updated
C:\>exiftool -g1 -a -s -OriginalDocumentID "Y:\!temp\IMG_0130.JPG"
---- XMP-xmpMM ----
OriginalDocumentID : a7999a880090e6c8abdd39d6ec1fc2b3
That works, thanks!
It was the second warning that was causing the problem, but you needed the -a option when writing to see it:
exiftool -documentid=1 -a IMG_0130.JPG
Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto - IMG_0130.JPG
Warning: [Minor] Duplicate XMP property: mwg-rs:Regions/mwg-rs:RegionList/rdf:Seq/rdf:li 10/mwg-rs:Type - IMG_0130.JPG
0 image files updated
1 image files unchanged
- Phil
Edit: The problem is actually that the file has two XMP segments. I will enhance the Validate feature to report problems like this.