4 Replies Latest reply on Jan 11, 2011 4:33 PM by areohbee

    Showing thumbnails of catalog images in export screen

    Peter Hulst

      hi there,

      I'm working on an export plugin where I'd like the user to be able to select a single image from the photo selection, to use as the cover of an album. I want this to be done right from the export plugin, by displaying a pageable list of photo thumbnails (that were selected for export) and allowing the user to select one. However I can't find any examples or documentation that describe how to do that.

       

      Is it possible at all to somehow use the LrView:picture with a Photo object as its source, to display a thumbnail rendition of a photo in the catalog? If not, are there any other techniques available to have the user select one image in the selection during the export process?

       

      (I suppose something like this could be done by asking the user to flag or tag the cover image before going in the export dialog, but anything that integrates with the export dialog would be a far better user experience)

       

      any suggestions appreciated,

      thanks

      Peter

        • 1. Re: Showing thumbnails of catalog images in export screen
          areohbee Level 5

          I don't think there is any direct/built-in way to do it.

           

          I've noticed the list of file types supported by the picture method of lr-views is absent - do you know whether it works for jpg as well as png?

           

          Its still possible you could use it though if you are willing to do a bit of work, for example:

           

          - Call exiftool to extract a jpg from raws then display those.

          - Find a way to tap into the lr preview subsystem and use the jpegs there.

           

          R

          • 2. Re: Showing thumbnails of catalog images in export screen
            areohbee Level 5

            Another idea: Make it a publish service instead of an export - since thumbnails for photos to export are already presented...

            • 3. Re: Showing thumbnails of catalog images in export screen
              Peter Hulst Level 1

              Rob,

               

              After doing some more investigation, I found that it may be possible to parse image thumbnails out of the lrprev files. LRViewer is an app that does this, as well as Jeffrey Friedl's 'Preview Extraction' plugin.

               

              Unfortunately, for neither is any source code available, and Jeffrey's plugin also doesn't work in LR3 anymore. In his screenshot he is clearly displaying catalog images in a plugin dialog though.

              http://regex.info/blog/lightroom-goodies/preview-extraction

               

              I wonder why his plugin does not work in LR3 though... did the lrprev file format change a bit from v2 to v3 and he hasn't bothered to reverse engineer it again, or has the SDK become more restrictive, preventing these types of tricks in LR3?

               

              Also had a look at your Lightroom Plugin Development project... very interesting. If I figure out how to extract a thumbnail from these lrprev files perhaps I could contribute it back to this framework...

               

              Peter

              • 4. Re: Showing thumbnails of catalog images in export screen
                areohbee Level 5

                HI Peter,

                 

                Definitely possible to parse the images from the previews, or at least it was in Lr2. I would guess Jeffrey Friedl just never got around to updating the plugin, since he got sortof "plugin overload/burnout..." (he's got dozens of plugins that he makes very little money from... - its a labor of love whose novelty can wear off...

                 

                But I'm just guessing.

                 

                I would guess one could reverse engineer the preview subsystem fairly easily simply by locating the jpeg images in the files, and displaying them, rearranging them, dumping the data for them... I've actully loaded the jpegs from the previews directly in ACDSee before - dont remember details... So, the hardest part would probably be figuring out how to map photo catalog info to preview item... Unless of course Adobe has obfuscated them now so we dont "play" with them...

                 

                Does the LrViewer work with Lr3 catalogs?

                 

                PS - The SDK itself has not become more restrictive, except in a few insignificant cases, like finally removing setfenv...

                 

                Hope you mastermind it then fold it into the Lightroom Plugin Development project :-)

                 

                There's supposedly plenty of room for participation by others in the project although so far its been mostly me.

                 

                Rob