29 Jun
2011
29 Jun
'11
5:20 p.m.
On Wed, 29 Jun 2011, Hans Hagen wrote:
Such a plugin looks like:
\startluacode figures.converters.png = { png = function(oldname,newname,resolution) local command = string.format('gm convert -depth 1 "%s" "%s"',oldname,newname) logs.report(string.format("running command %s",command)) os.execute(command) end } \stopluacode
Don't you need to use 'resolution' somewhere in the function?
\externalfigure[mill.png][resolution=lowres,conversion=png]
Aditya