May 26, 2018
SVG image file output
ImageBaseSVG extends ImageBase to create or update SVG format image files using the SVG.pm module see SVGManual.
ImageBase is pixel oriented so isn’t really the sort of thing SVG is meant for, but this module can direct some ImageBase style code at an SVG object. Of course the SVG module has many more features if used natively.
It’s often fairly easy to spit out SVG directly too, and for instance the ImageBaseSVGout module can do that. The advantages of the SVG document object model comes when combining images or fragments, or going through elements for post-facto mangling.
In the current code the SVG elements emitted assume some default style attributes such as stroke-width 1. Perhaps that should be set explicitly on each element.