1

I'm trying to find information on how to create a plugin for lightroom to publish photos to my website. Anyone know where I can get info?

I'm using django for my website if that matters.

Charles Haro
  • 1,866
  • 3
  • 22
  • 36

1 Answers1

1

There are two parts to this question: (1) how to write Lightroom plugins and (2) how to write a plugin that can publish photos (so, make an http request to upload a photo to a website).

You can find general information about writing Lightroom plugins on Lightroom Dev Center. This post on my blog may provide a simple starting point as well.

The example in the blog post may be helpful for another reason: it uses luasocket library that you will need to access to publish photos. Here is an example of how HTTP POST request can be made using this library. Note that the solution in the blog post includes this line package.loaded.socket = import "AgSocket" (executed in a module, not in a plugin), which preloads luasocket and makes it available to socket.http module.

Paul Kulchenko
  • 25,884
  • 3
  • 38
  • 56
  • 2
    Lightroom plugins should do their HTTP business using LrHttp module (see Lightroom SDK). The plugins cannot load arbitrary packages - require "AgSocket" will fail. – jarnoh May 30 '14 at 17:31
  • You can't do it from a plugin, that's why in the solution I referenced this `require` is done in a module. If this is for personal use, it should not be a problem. I updated the answer to clarify that. – Paul Kulchenko May 31 '14 at 00:58