jeremy rosen wrote: Hi Jeremy,
took me a little longer than expected. i made changes in http://www.darktable.org/redmine/projects/darktable/wiki/LuaScripts an refereced this in attached patch for the usermanual. well, not as pull request, i'm sure it would mess up the existing #405 (ex-#345) for crop'n'rotate :^) kind regards greets Wolfgang > arg... bug in the manual :( > > could you provide a patch to the usermanual ? > > > On Mon, Jan 13, 2014 at 12:42 AM, Wolfgang Goetz > <[email protected]>wrote: > > > 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 > > > > > > > > > > ------------------------------------------------------------------------------ > > 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 > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/darktable-devel > > > >
diff --git a/doc/usermanual/lua/lua.xml b/doc/usermanual/lua/lua.xml
index 71917ff..906e206 100644
--- a/doc/usermanual/lua/lua.xml
+++ b/doc/usermanual/lua/lua.xml
@@ -115,28 +115,33 @@
<para>author: boucman </para>
</listitem>
<listitem>
- <para>tested with: 1.3+265~gd7f3d1a </para>
+ <para>tested with: 1.5+133~g7ff07de </para>
</listitem>
<listitem>
- <para>download: <ulink url="http://www.darktable.org/redmine/attachments/download/572/mosaic.lua">mosaic.lua</ulink></para>
+ <para>download: <ulink url="http://www.darktable.org/redmine/attachments/download/834/mosaic.lua">mosaic.lua</ulink></para>
</listitem>
</itemizedlist>
<para><programlisting>dt = require "darktable"
-dt.register_storage("module_stitcher","mosaic generator",nil,
- function(storage,image_table)
- 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
+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
)
</programlisting></para>
<para>This script is an example of storage implemented in Lua. This is not complete nor polished but it shows how to implement a storage module in Lua.</para>
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 [email protected] https://lists.sourceforge.net/lists/listinfo/darktable-devel
