#vector-graphics #svg #pen-plotter #g-code #cnc #convert #laser

app svg2gcode-web

Convert vector graphics to g-code for pen plotters, laser engravers, and other CNC machines

8 releases

0.0.12 Apr 8, 2024
0.0.11 Apr 8, 2024
0.0.9 Mar 29, 2024
0.0.7 Feb 9, 2024
0.0.4 Nov 19, 2023

#146 in Graphics APIs

Download history 4/week @ 2024-01-27 1/week @ 2024-02-17 15/week @ 2024-02-24 129/week @ 2024-03-09 29/week @ 2024-03-16 83/week @ 2024-03-23 80/week @ 2024-03-30 347/week @ 2024-04-06

667 downloads per month

MIT license

1.5MB
10K SLoC

Pug 6.5K SLoC // 0.0% comments Rust 3.5K SLoC // 0.1% comments JavaScript 54 SLoC

svg2gcode

Build, test, and publish coverage for svg2gcode

Build svg2gcode-cli

Build svg2gcode-web Deploy svg2gcode-web

codecov

Convert vector graphics to g-code for pen plotters, laser engravers, and other CNC machines

Usage

Web interface

Check it out at https://sameer.github.io/svg2gcode. Just select an SVG and click generate!

SVG selected on web interface

Command line interface (CLI)

Input

cargo run --release -- examples/Vanderbilt_Commodores_logo.svg --off 'M4' --on 'M5' -o out.gcode

To convert curves to G02/G03 Gcode commands, use flag --circular-interpolation true.

Vanderbilt Commodores Logo

Output, rendered at https://ncviewer.com

cat out.gcode

Vanderbilt Commodores Logo Gcode

Library

The core functionality of this tool is available as the svg2gcode crate.

Blog Posts

These go into greater detail on the tool's origins, implementation details, and planned features.

FAQ / Interesting details

Reference Documents

Dependencies

~23MB
~421K SLoC