[darktable-dev] Export from Lua

2016-11-14 Thread Pascal Obry
Hello Lua experts!

I want to create a Lib (a bit like the Enfuse one in the lua-script
repo) but I need to first export the RAW file as say TIF. Is there a
way to export a set of RAW from Lua?

I tried calling darktable-cli on command line, but as expected this
does not work because of the db locking.

Any idea?

Thanks,

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://photos.obry.net
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Export from Lua

2016-11-14 Thread Roman Lebedev
On Mon, Nov 14, 2016 at 4:53 PM, Pascal Obry  wrote:
> Hello Lua experts!
>
> I want to create a Lib (a bit like the Enfuse one in the lua-script
> repo) but I need to first export the RAW file as say TIF. Is there a
> way to export a set of RAW from Lua?

> I tried calling darktable-cli on command line, but as expected this
> does not work because of the db locking.
Hm, but dt-cli does not need db. So i think the fact that it tries to lock
the db is a bug. Please open new issue about this.

> Any idea?
>
> Thanks,
>
> --
>   Pascal Obry /  Magny Les Hameaux (78)
Roman.

>   The best way to travel is by means of imagination
>
>   http://photos.obry.net
>   http://www.obry.net
>
>   gpg --keyserver keys.gnupg.net --recv-key F949BD3B
> ___
> darktable developer mailing list
> to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org
>
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Export from Lua

2016-11-14 Thread johannes hanika
On Mon, Nov 14, 2016 at 2:58 PM, Roman Lebedev  wrote:
> On Mon, Nov 14, 2016 at 4:53 PM, Pascal Obry  wrote:
>> Hello Lua experts!
>>
>> I want to create a Lib (a bit like the Enfuse one in the lua-script
>> repo) but I need to first export the RAW file as say TIF. Is there a
>> way to export a set of RAW from Lua?
>
>> I tried calling darktable-cli on command line, but as expected this
>> does not work because of the db locking.
> Hm, but dt-cli does not need db. So i think the fact that it tries to lock
> the db is a bug. Please open new issue about this.

i guess you can always explicitly add --library :memory: or something
to avoid locking?

-jo
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Export from Lua

2016-11-14 Thread Pascal Obry
2016-11-14 15:17 GMT+01:00 johannes hanika :
> i guess you can always explicitly add --library :memory: or something
> to avoid locking?

Even with that I get a locking issue!

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://photos.obry.net
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Export from Lua

2016-11-14 Thread William Ferguson
Hi Pascal,

The current way to export a set of RAWs and pass them on for further
processing to an external process is to create a storage instead of a lib.
Examples of this are contrib/hugin.lua and contrib/gimp.lua.  If you give
me a better idea of what you are trying to do, I'll try and give a better
answer.

Hope this helps,

Bill

P.S.  Thanks for the translations

On Mon, Nov 14, 2016 at 9:24 AM, Pascal Obry  wrote:

> 2016-11-14 15:17 GMT+01:00 johannes hanika :
> > i guess you can always explicitly add --library :memory: or something
> > to avoid locking?
>
> Even with that I get a locking issue!
>
> --
>   Pascal Obry /  Magny Les Hameaux (78)
>
>   The best way to travel is by means of imagination
>
>   http://photos.obry.net
>   http://www.obry.net
>
>   gpg --keyserver keys.gnupg.net --recv-key F949BD3B
> 
> ___
> darktable developer mailing list
> to unsubscribe send a mail to darktable-dev+unsubscribe@
> lists.darktable.org
>
>

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Re: [darktable-dev] Export from Lua

2016-11-14 Thread Pascal Obry

Hi William,

> The current way to export a set of RAWs and pass them on for further
> processing to an external process is to create a storage instead of a
> lib. Examples of this are contrib/hugin.lua and contrib/gimp.lua.

I've done that in some other plug-ins indeed. But here I really want to
create an HDR lib which supports RAW. I'd like a lib here as the fact
that there is export should be hidden. That's not the point for end
users and the lib will allow a better visibility in the UI.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Export from Lua

2016-11-14 Thread William Ferguson
If it's going to act directly on RAWs, then you can just use the
darktable.gui.action_images table.  If you need to do an export behind the
scenes, then look at
https://github.com/wpferguson/lua-scripts/blob/plugin/lib/libPlugin.lua.
There are two functions in there, libPlugin.build_image_table and
libPlugin.do_export that build an image table similar to the exporters,
then do_export creates the formats and exports the images.  I wrapped a UI
around them, but you could use them directly and just define which format
to export.

Bill

On Mon, Nov 14, 2016 at 12:29 PM, Pascal Obry  wrote:

>
> Hi William,
>
> > The current way to export a set of RAWs and pass them on for further
> > processing to an external process is to create a storage instead of a
> > lib. Examples of this are contrib/hugin.lua and contrib/gimp.lua.
>
> I've done that in some other plug-ins indeed. But here I really want to
> create an HDR lib which supports RAW. I'd like a lib here as the fact
> that there is export should be hidden. That's not the point for end
> users and the lib will allow a better visibility in the UI.
>
> --
>   Pascal Obry /  Magny Les Hameaux (78)
>
>   The best way to travel is by means of imagination
>
>   http://www.obry.net
>
>   gpg --keyserver keys.gnupg.net --recv-key F949BD3B
>

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Re: [darktable-dev] Export from Lua

2016-11-14 Thread Pascal Obry

Hello William,

> If it's going to act directly on RAWs, then you can just use the
> darktable.gui.action_images table.  If you need to do an export
> behind the scenes, then look at https://github.com/wpferguson/lua-
> scripts/blob/plugin/lib/libPlugin.lua.  There are two functions in
> there, libPlugin.build_image_table and libPlugin.do_export that build
> an image table similar to the exporters, then do_export creates the
> formats and exports the images.  I wrapped a UI around them, but you
> could use them directly and just define which format to export.

Great! I'll have a look. Thanks.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Expired SSL certificate for www.darktable.org

2016-11-14 Thread code
It appears that the SSL certificate for www.darktable.org expired
November 11, 2016. (Today is November 14, 2016.)

Latest entry for www.darktable.org: https://crt.sh/?id=28259652
All entries for www.darktable.org: https://crt.sh/?q=www.darktable.org
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org