Update dateTimeOriginal from plugins

Community Beginner ,
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

118

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

correct answers 1 Correct answer

Adobe Community Professional , May 11, 2022 May 11, 2022
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
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
Community Beginner ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

LATEST

Thanks a lot for your answer, that help a lot. I'll work directly with ExifTool as suggested by @johnrellis and update EXIF data after.

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

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