Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DocumentID and ImageUniqueID to exiftool and XMP output #1510

Open
RhetTbull opened this issue Apr 13, 2024 · 1 comment
Open

Add DocumentID and ImageUniqueID to exiftool and XMP output #1510

RhetTbull opened this issue Apr 13, 2024 · 1 comment
Labels
feature request New feature or request

Comments

@RhetTbull
Copy link
Owner

          Found it.

The field that should be set is ImageUniqueID. Right now PhotoPrism only reads this field from exiftool and not XMP but I guess it can't hurt to set it in both for future proofing.
ImageUniqueID must be a UUID for this to work, I believe that is the case with Apple Photos Identifiers, correct?
This worked for me:

exiftool -overwrite_original -ImageUniqueID="51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25" Film0103.edited.jpeg
exiftool -overwrite_original -ImageUniqueID="51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25" Film0103.jpg
exiftool -overwrite_original -ImageUniqueID="51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25" Film0103.nef

Edit: It appears that DocumentID field is also supported.
I ran the following commands on the 3 (original) output files and it got them stacked in PhotoPrism:

exiftool -overwrite_original -DocumentID="51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25" Film0103.edited.jpeg
exiftool -overwrite_original -DocumentID="51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25" Film0103.jpg
exiftool -overwrite_original -DocumentID="51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25" Film0103.nef

Originally posted by @odedia in #1508 (comment)

@RhetTbull RhetTbull added the feature request New feature or request label Apr 13, 2024
@RhetTbull
Copy link
Owner Author

The fields are:

  "EXIF:ImageUniqueID": "51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25",
  "MakerNotes:ImageUniqueID": "51b2fbb7d7d5ad4d41d99c8de96e1a1a0f25",
  "XMP:DocumentID": "51b2fbb7-7d5a-4d41-99c8-e96e1a1a0f25",

MakeNotes cannot be written by exiftool if it doesn't already exist. I didn't set MakerNotes so it got set because -ImageUniqueID was specified so exiftool set both matching tags.

MakerNotes should probably be updated but this requires custom code if it doesn't already exist (see makelive).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant