SVG to raster conversion.

J. Cliff Dyer jcd at sdf.lonestar.org
Sun Sep 16 19:50:56 CEST 2007


Stefan Behnel wrote:
> J. Cliff Dyer wrote:
>   
>> 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.
>>     
>
> The GIMP can do it, and you can even program it in Python.
>
> Stefan
>   
Thanks.  I can't find a gimp-python package for gimp-2.x anywhere
though.  Do
es such a thing exist?



More information about the Python-list mailing list