Update dateTimeOriginal from plugins

New Here ,
May 11, 2022 May 11, 2022

Copy link to clipboard

Copied

Hello,

 

I'm trying to set the dateTimeOriginal of a photo from a CSV file I have thanks to a plugins. On your SDK, on the photo:getRawMetadata I saw the field but I couldn't archieve to set with photo:setRawMetadata where I always have a LrPhoto:setRawMetadata: unknown metadata key "dateTimeOriginal".

 

How can I fix my plugins. Thanks a lot

 

TOPICS
SDK

Views

104

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 11, 2022 May 11, 2022

Copy link to clipboard

Copied

The SDK does not support writing EXIF fields, only IPTC. That's why the documentation does not list that field in SetRawMetadata

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 11, 2022 May 11, 2022

Copy link to clipboard

Copied

LATEST

To build on that, plugins that want to set the capture date of photos do these steps:

 

1. photo:saveMetadata ()

 

2. Run the utility program Exiftool to set EXIF:DateTimeOriginal.

 

3. photo:readMetadata ()

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines