Skip to main content
Inspiring
October 7, 2023
Question

SDK Generate thumbnails with exact dimensions

  • October 7, 2023
  • 1 reply
  • 321 views

For uploading thumbnails from Lightroom to a cloud service, I need to send images with exact dimensions, atleast one dimension should have the exact size.

 

I experimented with photo:requestJpegThumbnail( 400, 400 ... but, as the documentation states, the resultant thumbnail might be bigger. So that doesn't work for me.

 

For now I'm using the ExportService and that works, but this seems like overkill to me.

 

Question: is there a different method to generate thumbnails in Lightroom using the SDK with the exact size?
It could be that more than a thousand images need to be uploaded.

This topic has been closed for replies.

1 reply

johnrellis
Legend
October 7, 2023

Those are the only two methods.  Several of my plugins export low-resolution thumbnails, and in batch, LR can export about 5-10 thumbs/sec on a newer computer. 

 

You could conceivably use photo:requestJpegThumbail() and then invoke ImageMagick to batch-resize all the saved JPEGs that are too large.  I could imagine that might go significantly faster, but just a guess.