Lightroom SDK: copyright status seems to be missing, please add to formatted metadata.

  • 1
  • Idea
  • Updated 7 years ago
Unless I'm mistaken, copyright status seems to be missing(?), please add to raw/formatted metadata.

While I'm at it, if there is any way you can provide better documentation for how the raw/formatted metadata maps to exif/iptc/xmp fields would be appreciated (and how the raw/formatted names correspond to the Lightroom UI in cases where its not obvious) - its a nightmare trying to transfer metadata from the Lightroom catalog to a file so it can be read by various softwares.

Thanks,
Rob
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes

Posted 7 years ago

  • 1
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
Is copyright status not provided by the :getFormattedMetadata() keys "copyright", "rightsUsageTerms", "copyrightInfoUrl", and "copyrightOwner"?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
In a word: No.

- copyright is the copyright text message
- rights is the rights
- url is the url

- I'm not sure what copyrightOwner is (always nil so far), but its not the copyright status (which should be "Public Domain" or "Copyrighted" or "Unknown".
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
Ah, I was confused. But I found the answer in some unfinished code: The undocumented photo:getRawMetadata() key "copyrightState" will return one of true, false, or "unknown".

In general, I've found that the documentation for getRawMetadata() and getFormattedMetadata() has lots of gaps and mistakes. You can reverse engineer this by looking at the documentation for catalog:findPhotos() (where "copyrightState" is hinted) and by invoking getRawMetadata() and getFormattedMetadata() with nil (return all available fields). But beware that not all available fields are always returned.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
John, if you were confused, then it must have been confusing ;-)

- thanks for the hot tip! (now all I have to do is figure out how to set it using exif-tool and I'm home free...)

UPDATE:
-XMP-xmpRights:Marked=True -- copyrighted
-XMP-xmpRights:Marked=False -- public domain
(delete tag if copyright state/status is "unknown")

Rob
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
To be clear: copyright status *is* available, its just not documented. So this FR/Idea is to document it...