[NTG-context] svg -> png conversion

Peter Münster pmlists at free.fr
Mon Feb 8 14:40:52 CET 2010


Hello,

How can I convert svg to png on the fly?

I've created a file "test.rlx":

<?xml version='1.0 standalone='yes'?>
<rl:manipulators>
    <rl:manipulator name='png' suffix='svg'>
        <rl:old><rl:value name='path'/>/<rl:value name='file'
        method='nosuffix'/>.png</rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value
        name='file' method='nosuffix'/>.png</rl:new>
        <rl:step>
            inkscape -d 600 -e
            <rl:value name='new'/>
            <rl:value name='old'/>
        </rl:step>
    </rl:manipulator>
</rl:manipulators>

and a file "test.tex":

\setupexternalfigures[conversion=png]
\starttext
\externalfigure[./myfile.svg]
\stoptext

But when running context on the file, it tries to convert the svg to pdf.

What do I need to do?

TIA for any hint!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/




More information about the ntg-context mailing list