SVG PIL decoder

Donn donn.ingle at gmail.com
Wed Sep 30 18:47:18 CEST 2009


On Wednesday 30 September 2009 18:01:50 Patrick Sabin wrote:
> I would like to open svg files with PIL, but svg doesn't seem to be
> supported. Does anyone know about a svg decoder for the PIL?
Have a look at Cairo (python-cairo) in conjunction with librsvg (python-rsvg) 
-- that'll fix you up. You can go from an SVG to a PNG/array and thence into 
PIL if you need to.

\d
-- 
home: http://otherwise.relics.co.za/
2D vector animation : https://savannah.nongnu.org/projects/things/
Font manager : https://savannah.nongnu.org/projects/fontypython/



More information about the Python-list mailing list