SVG PIL decoder

Donn donn.ingle at
Thu Oct 1 02:00:03 CEST 2009

On Thursday 01 October 2009 01:08:28 Patrick Sabin wrote:
> Thanks for the tip. Got it work, although it was a bit tricky, as
> resizing doesn't seem to be supported by python-rsvg and
> cairo.ImageSurface.create_from_png doesn't allow StringIO or
My best suggestions are to visit the Cairo website -- inside there somewhere 
is a recipe page with many samples in Python. 

Next would be 

Third is a tutorial I made (perhaps less useful) on my site links at bottom of that 

Fourth is to join the cairo at mailing list at they are super helpful.

Lastly is my animation API (in sig)which is also Python and may help you with 
the source.

The general idea for scaling is to use matrices (cairo provides all commands) 
and then output the surface to a file-like object.

My animation API brings selected snippets of SVG in from an Inkscape file 
(tagged by id), animates them by tweening and can output each frame to another 
SVG or to a PNG.

2D vector animation :
Font manager :

More information about the Python-list mailing list