How do you Display a Scaled Photo in a Dialog?

I'll admit I'm new to scripting in Lua/Lightroom and apologize if this is a trivial question.
I'm attempting to write a plug-in to assist in a workflow for scanned images.
The idea is to scan in the images and then use the plug-in to help process them
efficiently by selecting options that I'll write specific code for.
The plug-in will access a set of images selected from the Libraby module.
In order for the plug-in to work effectively I need to display a preview/thumbnail
of the image currently being processed in the plug-in's dialog box. I have successfully
used viewFactory:picture to display the image, but it displays the image at full resolution
which is way to big.
Is there a way to use viewFactory:picture and scale the image down to a reasonable size?
Is there a way to access the lower resolution preview images that already exist in Lightroom?
Is there a way to do this that I am missing?
I'm currently using Lightroom 2.5. The dialog I'm attempting to design would look a lot like
the one provided in the Library module in Metadata -> Edit Capture Time, with my own
workflow logic options.
Many thanks to anyone who can point me in the right direction.

Hi John,
I took a look at an lrprev file - looks like standard jpeg image(s) in some kind of non-standard envelope. If you rename it .jpg or .tif then ACDSee will open it and display the thumbnail.
I didn't look at the database files that go with it, but they might reveal something if one had a look.
Anyway, LrViewer certainly proves the previews are accessible if one troubles to figure out how.
The original poster could even try setting one of the lrprev files as a resource (maybe with a better suffix, like jpg or tif) and see if view-factory:picture would displays the thumbnail. One would still need to figure out how to get the right one though - that's where taking a peek at the database might come in handy.
That's all I got,
Rob

Similar Messages

  • How do you display file type in PS Elements 10?

    How do you display file type in PS Elements 10 in the Organizer for each photo?
    I know you can right click and look at meta data.
    In PSE 7 it was displayed under each photo.

    Two things:
    1.  Set the View option to show file names:
    2.  Ensure your thumbnails are large enough to display the data:
    Ken

  • On elements 11 organizer how do you display file #

    On elements 11 organizer how do you display file # for each photo?

    Control D
    Zoom in until it appears.
    Alternately: menu Vieuw (?? I have a german version...). Click details, persons etc...

  • How can you tell if all photos in an event have a Place assigned?

    How can you tell if all photos in an event have a Place assigned, without clicking every photo in the event individually with the Info bar open to see if there is a little map in the bottom left hand corner please?
    cheers

    Terence Devlin wrote:
    File -> New -> Smart Album
    Event -> Contains -> Name of Event
    Plus
    Place -> Does not contain -> leave the last field blank
    Thanks for that, just getting used to these brilliant smart albums, do I have to have one of these smart albums for every event though? can I not just use it for all photos?
    cheers

  • How do you display a new image in  webdynpro view?

    How do you display a new image in  webdynpro view?
    Where is the image stored and how do we specify the image path?

    hi ,
    The UI element Image enables you to integrate graphics into the Web application in a format that is processed by the Web Server u2013 for example, GIF, JPG, and PNG format. Height and width of the graphic can be specified using the properties height and width. The graphic is displayed without borders.
    saveur image   as mime
    with Mime Objects u cn upload doc , jpeg, or giff files from our local system into the webdypnpro system .
    Right click on ur component->mime object->import
    In the transaction sicf/bc/webdynpro , u cn check your component name there you can view the mime objects created by you .
    also refer the SAP online help :
    http://help.sap.com/saphelp_crm50/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
    to knw more abt mime repositories.
    http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
    regards,
    amit

  • How do you display a price in 2 decimal spaces? e.g.  $39.95000

    Does anyone know how do you display a price in 2 decimal spaces? e.g. $39.95000
    jsp code preferred please,
    thanks in advance!

    hi,
    this is jsp code just follow code
    <%@page language="java" import="java.text.*" %>
    <%
    double d=39.95000;
    NumberFormat fmt=new DecimalFormat("0.00");
    out.println(fmt.format(d));
    %>
    jpreddy

  • How do you display a swf video / videos when you mouse over

    How do you display a swf video / videos when you mouse over, It'll be something like a pop up but just that it doesn't open in another windows but within the same window and will be like a pop up roll over image.

    Thank you for the reply.
    I've been putzing around with it and came across the 'SetEventHandler' object and thought I'd try and make that one work.
    Here's what I've got so far.
           <mx:SetEventHandler target="{turnAroundMovie}" name="handleMovieClip" handler="stopMovie()"/>
    And then my fuction.
       <mx:Script>
            <![CDATA[
                private function stopMovie():void{
                    turnAroundMovie.stop(); <!-- here's where I'm getting stuck -->
            ]]>
        </mx:Script>
    My first instinct was the simple stop(), but that didn't fly.  I even added a stopMovie frame in my .swf and tried a gotoAndStop('stopMovie'); but that didn't fly either.  And that's kind of where I'm stuck at.

  • How do you create folders in photo's

    In an IPOD4 (or IPhone for that matter) how do you create folders within Photo's to segregate your pictures in to meanigfull collections, rather than just random bunches.
    Thanks

    Bummer - seems like wasted effort - to move all the photo's to a computer, delete then from the IPOD/IPHONE,  organize them, and then move back to IPOD/IPHONE. Oh well, is what it is.
    Thanks
    Mike

  • HT4906 how do you delete pictures in photo stream?

    how do you delete pictures in photo stream

    if you have iphoto 9.2.3 or later, and photostream is on the left hand side, just drag the images into the trash.
    the only other option is to nuke all of them at once by signing into icloud.com clicking on your name in the top right, then going to advanced. and pressing the Reset Photostream button.
    or alternatively, a quick google search will show you http://howto.cnet.com/8301-11310_39-20121486-285/how-to-delete-photos-from-photo -stream/   which says exactly what i just said

  • HT4906 how do you rotate pictures in photo stream?

    how do you rotate pictures in photo stream.

    The pictures in the photo library are rotated. When I view them
    t in photo stream they are not.

  • How do you display total time for playlist in Itunes 11

    how do you display total time for playlist in Itunes 11

    "I can see the total time in my playlist on the computer but not on my device??"
    I have just posted a question asking the same!
    Did you have any joy?

  • How do you display exact duplicates in Itunes 11. It is now missung under the file?

    How do you display exact duplicates in Itunes 11. It is now missung under the file?

    Right-click on this direct link to ExactDuplicates and "download" or "save link as..." to a location of your choice. Double-click to the file to run it. You should get something a bit like this:
    If your system will allow it my script will produce a progress bar so you can see what is going on, otherwise you will have to be patient, it will carry on working in the background.
    After scanning for duplicates it then adds them to a new playlist. For large libraries this process can be quite slow. (Very slow if you also have old hardware like me.)
    Finally you'll get a results window like this (from a different test run, as I didn't have time for the full one to finish when I was grabbing screenshots).
    You can use shift-delete to remove selected tracks from the library as well as the playlist. Leave at least one track behind from each repeated group and don't send anything to the recycle bin unless you are sure you have more than one physical copy.
    The DeDuper script has several advantages over cleaning by hand. Automating the process allows preservation & amalgamation of ratings, play counts, playlist membership, etc. See this thread for more detail.
    tt2

  • How do you display Movies only in iPhoto?

    How do you display Movies only in iPhoto?

    Create a Smart Album like this (depending on your iPhone model)
    You'll see your iPhone pictures and all movies in the library.
    OT

  • HT1386 HOW DO YOU DISPLAY DUPLICATES IN PLAYLISTS?

    How do you display duplicates on the playlist with the new itunes format?

    Note that, as with the iTunes feature, this lists make no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicates copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • How can you sync ipad 2 photos to pc not using the cable or icloud sync?

    How can you sync ipad 2 photos to pc not using the cable or icloud sync? Is there a way to do this via wi-fi network, How can you sync ipad 2 photos to pc not using the cable or icloud sync? Is there a way to do this via wi-fi network

    Thanks for that, that was my first suggestion but he wants to not email either. His problem is he used his old nokia to do it and it was fine, now anything other than that he thinks is too much hassle.

Maybe you are looking for

  • List aggregate two rows into one

    query : select kod_negeri.NAMA kod_negeri_nama, hakmilik.id_hakmilik, MOHON.PENYERAH_NAMA, MOHON.PENYERAH_ALAMAT1, MOHON.PENYERAH_ALAMAT2, MOHON.PENYERAH_ALAMAT3, MOHON.PENYERAH_ALAMAT4, MOHON.PENYERAH_POSKOD, MOHON.PENYERAH_KOD_NEGERI, MOHON.PENYERA

  • Split PDF following preserving existing bookmarks

    Hello, Is it possible to split a PDF using Acrobat XI by top level bookmarks, while retaining existing bookmarks in the resulting files? With the default split it creates the new PDF's, but looses the bookmarks. Thanks for any suggestions. PS: I am o

  • When I click send link my yahoo mail does come up BUT the link is coming up in the TO box

    I am trying to send a link to my friend and when I click send link my yahoo mail DOES pop up but the link is showing in the TO box instead of the body of the message...I have to cut and copy that and put in the message body then put the email address

  • Inbound delivery status change

    Hi, i have a situation where in the inbound ASN status changes from C to B,after a return delivery is done  in MIGO (mvt type 122)against the goods receipts. is there any way to prevent the inbound deliveries from opening up? we are using ECC 6.0. An

  • Premier Elements 10 Laggy Performance

    I just bought Premier Elements 10 a couple of days ago and I'm already pulling my hair out in frustration.  The performance is horrible, every modification is laggy.  Especially noticiable is vertical and horizontal scrolling of the timeline.  I will