hi all, started playing with lua.. http://www.darktable.org/usermanual/ch07s03.html.php#mosaic_lua http://www.darktable.org/redmine/attachments/download/572/mosaic.lua
..only processing the first picture in a selection! (image_table contains one pair) solved by accident: (attached) adding a per-image 'store' function instead of nil does the job :-) greets Wolfgang
dt = require "darktable" dt.register_storage("module_stitcher","mosaic generator", function(storage,image,format,filename,number,total,high_quality,extra_data) dt.print(tostring(number).."/"..tostring(total)) end, function(storage,image_table,extra_data) dt.print_error("Will try to stitch now") command = "gm convert " for _,v in pairs(image_table) do command = command..v.." " end command = command.."-append -resize 15% "..dt.configuration.tmp_dir.."/tmp.png" dt.print_error("this is the command: "..command) os.execute(command) dt.print("Stitching saved to "..dt.configuration.tmp_dir.."/tmp.png") end )
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________ darktable-devel mailing list darktable-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-devel