Hi, I'm needing some expert help with my first attempt at a dt lua script.

In the 'final output' stage of my workflow I create images in various reduced sizes and formats from developed raws mainly for placing into non-darktable managed libraries or to publish. I use imagemagik 'convert' to resize at the end of the shrink and reformat process, and exiftool to copy metadata from the tifs if required. At present this in a bash script outside of dt and is a fairly cumbersome procedure which I really want to automate. My idea is to create a new storage target in dt to replace the bash script.

It has taken a long time but I've got the basic lua script together with code snips taken from the gimp.lua script, image_stack.lua, and others and I've been referring to the darktable lua api documentation.  I've got the new gui widgets to display and pre-populate with defaults (well most of them) but I have lost the standard
export options for export destination and filename, bit depth, and file format. The gimp.lua, and other scripts, automatically create 16bit tifs in /tmp without the user having to specify this, but I haven't been able to find out how this is done. Also I can't find how to access the standard export data fields. 
I don't want to test what happens when I press 'export' until I've got these basics correct. 

My immediate questions I need guidance with are:

1 - how do I ensure the export is always to /tmp, is 16-bit, and is in tif format?

2 - how do I ensure the exported tif files use my naming convention?

3 - how do I check if metadata was selected for export so I can determine if I need to run a metadata copy to the output files?

Thanks in advance.

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

Reply via email to