SVG to raster conversion.
Laurent Pointal
laurent.pointal at limsi.fr
Mon Sep 17 04:47:48 EDT 2007
J. Cliff Dyer a écrit :
> Does anybody know a good solution (preferably in python) for rasterizing
> SVG or other vector graphics.
>
> I'm thinking something like
>
> vector_image = SVGFile(path_to_image)
> raster_image = vector_image.rasterize(format, (width, height), dpi)
> raster_image.write(out_file)
>
> Thanks for any pointers you might have.
Another link to complement other replies:
Maybe witgh Cairo:
Library:
http://cairographics.org/
SVG support:
http://cairographics.org/manual/cairo-SVG-Surfaces.html
Python binding:
http://cairographics.org/bindings/
A+
Laurent.
More information about the Python-list
mailing list