The following module was proposed for inclusion in the Module List: modid: SVG::GD DSLIP: bmphp description: Provide SVG output to GD userid: RONAN (Ronan Oger) chapterid: 18 (Images_Pixmaps_Bitmaps) communities: [EMAIL PROTECTED],
similar: rationale: Module Rationale: ---------------- I have recieved numerous queries about generating SVG output from GD and other raster-drawing systems. Because a number of applications use GD, this is the first try to do this. As well, there have been been user queries on some lists/newsgroups including comp.lang.perl.modules SVG::GD enables the generation of GD drawings that are generated from SVG-compatible files PLUS shape primitives. (For example, there is not yet any support for certain methods that act at a raster level such as "fill" or require the server to have a spatial model of the canvas such as "fillToBorders"). Namespace rationale: ------------------- I am overwriting the GD::Image namespace with the SVG::GD::Image namespace, and therefore need to use SVG::GD rather than GD::SVG Approach: -------- The approach is not that unique. I take over the GD::Image namespace, open a new SVG drawing using the SVG.pm module, and map GD,pm methods to SVG.pm. A unique thing about the module is that it requires very little change to the existing code of an application using GD. For example, for an existing app using GD::Graph::lines, you change: use GD::Graph::lines; to: use GD::Graph::lines; #order is important. #This MUST be behind the GD-invoking point to work use SVG::GD; The module currently provides shape primitive support quite well, and has been tested against a number of other modules which invoke GD. Everything works fairly well. Sample output of the module can be found here: http://www.roaps.com/2003/11/11/ (You need to have svg support, and you need to drill down to the actual SVG images to see the SVG results). enteredby: RONAN (Ronan Oger) enteredon: Tue Nov 11 15:17:49 2003 GMT The resulting entry would be: SVG:: ::GD bmphp Provide SVG output to GD RONAN Thanks for registering, -- The PAUSE PS: The following links are only valid for module list maintainers: Registration form with editing capabilities: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=d5500000_25ee2d6e4430ffab&SUBMIT_pause99_add_mod_preview=1 Immediate (one click) registration: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=d5500000_25ee2d6e4430ffab&SUBMIT_pause99_add_mod_insertit=1