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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to