Ink2canvas is an Inkscape extension written in Python that exports SVG files to HTML5 canvas.
If you want a system wide install, copy canvas.py and canvas.inx to /usr/share/inkscape/extensions folder (or similar), if you have permission. If not, put files canvas.py and canvas.inx in local Inkscape extensions folder: $HOME/.config/inkscape/extensions.
In the seconde case, you will have to copy from /usr/share/inkscape/extensions/ the following Python modules to your folder: inkex.py, simplepath.py, simpletransform.py and simplestyle.py.
Open Inkscape file and choose HTML5 output option at "Save as" menu.
- Add missing path commands
- Refactor and fix style methods error handling
- Get clips and masks to work
- Radial Gradient
- Group style must prevail over grouped objects
- Lines, rects, circles, ellipses, paths (partial), texts
- Polylines and polygons
- Basic text attributes support
- Fill and stroke, linear gradient (initial)
- Transformation matrix (translating, rotating, scaling, etc)
- Iterating through groups and layers
- PotHix