cssho / vscode-svgviewer

SVG Viewer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=cssho.vscode-svgviewer
MIT License
67 stars 20 forks source link

Add feature: Export PNG with Canvas Tag. #19

Closed kexi closed 8 years ago

kexi commented 8 years ago

Hello @cssho .

I' working on adding "SVG Viewer: (Experimental) Export PNG" command. Using Canvas Html Tag to export PNG from SVG. So this feature doesn't depends on phantom-prebuilt.

Use this feature

  1. Open a SVG file.
  2. Press F1.
  3. Choose "SVG Viewer: (Experimental) Export PNG".
  4. Change Width or Height if need.
  5. Press 'Export PNG' button.

    Todo

    • [x] show warning message when active editor is not svg