Skip to main content
Known Participant
September 20, 2020
Answered

Match Smart Preview file names to LR catalog photos.

  • September 20, 2020
  • 2 replies
  • 298 views

Hi!
Could you please help me with such an issue. I have Smart Preview file names (in CSV) and I need somehow to find photos in the LR catalog which are matched to these Smart Previews names.
I thought that Smart Preview file name is the same as LrPhoto:getRawMetadata( 'uuid' ) e.g. 546F246C-54E2-4125-9BB3-867BBD22B5BD, but when I create a catalog with sample 5 photos and then retrieved their UUIDs I noticed that they are different from Smart Preview file names.

Maybe there is some trick how to match these SM filenames and photos in Lr Catalog?
I will be very grateful for any help. Thank you!

 

This topic has been closed for replies.
Correct answer johnrellis

The path of a photo's smart preview is given by photo:getRawMetadata ("smartPreviewInfo").smartPreviewPath.

 

[Use the blue reply button under the first post to ensure replies sort properly.]

2 replies

johnrellis
johnrellisCorrect answer
Legend
September 20, 2020

The path of a photo's smart preview is given by photo:getRawMetadata ("smartPreviewInfo").smartPreviewPath.

 

[Use the blue reply button under the first post to ensure replies sort properly.]

ManiacJoe
Inspiring
September 20, 2020

Pretty sure there is no "trick" to it, just no easy way either.

The most likely solution would be to open the catalog as a SQLite database using the SQLite tools and run a SQL query joining multiple tables to get the desired results. Unfortunately, most users do not possess the knowledge on how to do this, especially since Adobe does not publicly document the database format of the LR catalog.

That said, I don't know anything about the LR programming API to know how much work it would be to find the data using the official methods.