jam3

jam3/svg-to-image

convert SVG text to a Image that can be drawn in canvas

JavaScript
103
12
MIT License

This library converts SVG strings into HTMLImageElements for rendering in canvas contexts, supporting both vector graphics and HTML content via foreignObject. It's designed for developers working with canvas-based graphics who need to render SVG content, particularly useful for applications like data visualization, game development, or any project requiring dynamic SVG-to-canvas conversion.

Total donated
Undistributed
Share with your subscribers: