vector graphics drawing module
ronan at roasp.com
Fri Dec 16 17:59:31 GMT 2005
What about GTK2's SVG support? That should work for you out of the box.
Also, you could simply use ImageMagick's convert command. It does everything
you want out of the box. just like that... You might need to extend it to
recognize SVG1.1 or 1.2, but probably not even that.
I presume Image::Magick sorts this out for you.
On Friday 16 December 2005 17:00, Robin Berjon wrote:
> I've been noodling about writing a simple module to convert SVG Tiny
> 1.2 documents to rasters, and therefore I've been hunting around on
> CPAN for a good graphics module to use. There are quite a few
> options, but I'm struggling to figure out which one to use.
> My requirements are roughly the following:
> - basic shapes
> - bézier paths (cubic and quadratic)
> - colours fills and opacity
> - linear and radial gradients
> - does not require intense struggle to set up on OSX and Linux
> - ideally would have some fonts support, but I can live with only
> doing SVG fonts myself
> - helpers to maintain affine transform contexts are nice to have,
> but not required
> - ability to write directly to a bitmap buffer
> It looks like the best option could be one of the OpenGL modules, but
> I can't seem to manage to make much sense of how to use them for
> something simple (looking at OpenGL::Simple didn't help much). Imager
> has some of that but I don't intend to implement my own bézier support.
> Does anyone have suggestions, experience, etc?
RO IT Systems GmbH
...Building Web2.0 with SVG since 2001
More information about the london.pm