3 Replies Latest reply on Dec 15, 2010 2:07 AM by areohbee

    Import Images from Web

    neeraj1032

      Hello,

       

      Can i make an import plugin for lightroom 3 which imports plugin from web through a web service ?

       

      Description:

       

      When User clicks on the import button there will be option to search images from web, he will enter any keyword in the search box hit search button , search result will be shown as a thumbnail images on the thumbnail page.

       

      I need directions (help) how can we connect to web services using the sdk.

        • 1. Re: Import Images from Web
          areohbee Level 5

          There is no direct support for connecting to web services in the SDK.

           

          You could however build a web service consumer from the primitives.

           

          For example, I built an XmlRpc client using LrHttp.post.


          more info

           

          Rob

          1 person found this helpful
          • 2. Re: Import Images from Web
            neeraj1032 Level 1

            Thanks Rob,

             

            Can you please explain it a little bit more, i have made application to serach images and download images on phone applications using the web service,

            now i have to make this plugin for lightroom to import images from the same web service,

             

            1. how to connect with web service.

            2. Web service returns a xml containg the url of the images, how can i use this url to show the thumbnail view of the images in lightroom.

            3. Download(import) images to work on that in lightroom

            4. Can i insert a text box and a button ( custom UI) i lightroom import images page.

            5. Which editor to use for writing plugin.

            6. compiler to execute the Code.

             

             

            Can you please anwer these questions

             

            Thanks in advance !!!

             

            Regards,

            Neeraj Gupta

            • 3. Re: Import Images from Web
              areohbee Level 5

              A lot of these questions are already answered at the link I gave last post.

               

              Please spend some time reviewing information there.

               

              What you are embarking on is going to take some time.

               

              But, briefly:

               

              1. how to connect with web service.

              - You have to write a web service client that uses LrHttp.post, OR write an external application the loads the info into a form more digestable to a Lua plugin - you can launch that app from a plugin, then wait for the results.

               

              2. Web service returns a xml containg the url of the images, how can i use this url to show the thumbnail view of the images in lightroom.

              - I'd be inclined to go with the latter approach suggested above (have an external app interface to the web service), then have a plugin read the xml with the URLs. Thumbnails can be shown by accessing as a "resource" - read the SDK guide and API spec.

               

               

              3. Download(import) images to work on that in lightroom

              - Download via LrHttp, and import via catalog:addPhoto.

               

               

              4. Can i insert a text box and a button ( custom UI) i lightroom import images page.

              - No.

               

              5. Which editor to use for writing plugin.

              6. compiler to execute the Code.

              click here

               

               

              _RC