Lightroom SDK: Export plugin not saving face region metadata

  • 2
  • Problem
  • Updated 2 years ago
  • (Edited)
I have a Lightroom export plugin, exporting JPEG files.  I can't seem to get it to save the face region metadata, though.  I have tried all of the published values of LR_embeddedMetadataOption (copyrightOnly, copyrightAndContactOnly, allExceptCameraInfo, all) in my updateExportSettings function, and I see the embedded metadata changing with those values, but it never writes the face region info.  I do see the face regions if I use Lightroom's own Export dialog and uncheck the 'Remove Person Info' checkbox... Is there something I can specify in my export plugin that will do the same thing?
Photo of Suonatore Di Tromba

Suonatore Di Tromba

  • 2 Posts
  • 1 Reply Like
  • disappointed but hopeful?

Posted 2 years ago

  • 2
Photo of John R. Ellis

John R. Ellis, Champion

  • 3690 Posts
  • 963 Reply Likes
To reverse engineer the poorly documented export options, create an export preset and examine it in a text editor. (You can find the folder containing the preset files by doing Preferences > Presets > Show Lightroom Presets Folder.)

I exported two presets, one with the Remove Person Info unchecked and one with it checked.  Here are the differences between the two files:

Photo of Suonatore Di Tromba

Suonatore Di Tromba

  • 2 Posts
  • 1 Reply Like
Success!  Thanks for that great tip!  I took just took 'removeFaceMetadata' from your diff above and prefaced with LR_, and it worked.  Wish the official docs were half as good as your answer : )