Skip to content

dakerfp/Ink2canvas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ink2canvas

Ink2canvas is an Inkscape extension written in Python that exports SVG files to HTML5 canvas.

How to Install

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.

You will have to copy the following Python modules to that folder: inkex.py, simplepath.py and simplestyle.py. They may be found in this project at lib/ folder.

How to use:

Open Inkscape file and choose HTML5 output option at "Save as" menu.

Project Map

TODO

  • Add text properties support
  • Add missing path commands
  • Refactor and fix style methods error handling
  • Get clips and masks to work
  • Transform matrix data handling (translating, rotating, scaling, etc)

Working

  • Lines, rects, circles, ellipses, paths (partial), texts (basic)
  • Polylines and polygons
  • Fill and stroke, gradient (initial)
  • Iterating through groups and layers

Contributors

  • PotHix

About

Inkscape extension to generate HTML5/canvas code from SVG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published