[Image-SIG] Read SVG files - extracting the path

donn donn.ingle at gmail.com
Tue Nov 9 11:51:27 CET 2010

On 09/11/2010 10:39, Fredrik Lundh wrote:
> Yet another alternative would be to look for some SVG rendering tool

Have a look at python-cairo and python-rsvg. Rsvg on its own will render 
an svg (or any svg xml string passed, you can also specify by id) to an 
Cairo comes in when you want to do more custom stuff. To get an actual 
image file out of rsvg ... I'm rusty, but you'd need a Cairo context 
that gets rendered-into (by rsvg) and then you'd save that context to a 

OTOH, you can use Inkscape's command-line to fetch and render and chop 
and dice and flip and spin ....


More information about the Image-SIG mailing list