Lightroom SDK: photo:requestJpegThumbnail only works in Library Module.

  • 2
  • Problem
  • Updated 1 year ago
Lightroom SDK: photo:requestJpegThumbnail does not work in the Develop Module. win 7/64.

More info here:
http://forums.adobe.com/message/54473...

PS - I'm aware this function is not yet released, documented, nor (officially) supported, but I'd rather not wait till it's too late to report it. My apology in advance...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes

Posted 5 years ago

  • 2
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
I sure hope this one and the others like it (successful operation depends on which module user is in, with no way to know or force which module user is in) will be fixed when Lr5.1 / SDK is released.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Not fixed in Lr5.2 (final release).
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Example - this (in Explorer after saving images extracted using requestJpegThumbnail whilst in Develop module):

(most selected is "all white")

corresponded to this, in Lr:

(right-most photo is most selected)
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Retried this in Lr5.4 and at the moment seems to be working.

Adobe - did you change something? can I count on this working from here on out? (barring unforeseen problems I mean). Or am I just having different "luck" now...

Can anybody else report their experience?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Beware: simply by calling requestJpegThumbnail, you may semi-permanently foul up the lib preview that the user sees (color profile issue it seems).

This can not be repeaired via trying to force-build previews using Lr menus (since preview seems ok and up to date), but requires changing a develop setting so Lr will rebuild preview and straighten out the snafu.

Bottom-line: requestJpegThumbnail is not a safe method and should be completely avoided in production plugins pending a remedy from Adobe.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3556 Posts
  • 916 Reply Likes
Given the seriousness of this, perhaps it's worthwhile opening up a new topic with a different title?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Spoke too soon - blank images in dev module again - it's not consistent..
Photo of woss

woss

  • 1 Post
  • 0 Reply Likes
Hi guys,
I know this is very old thread but I can't make that method work at all, 

local req_jpeg = photo:requestJpegThumbnail(700, 700, function(success, error)
log('callback exec') -- this is logged
log(success) -- this is always nil log(error) -- never comes this far end)

Can anyone light any light on this matter?
LR  I'm using is: 6.7


Thanks