#vector-graphics #svg #gcode #convert #pen-plotter #laser #machine

svg2gcode

Convert paths in SVG files to GCode for a pen plotter, laser engraver, or other machine

15 releases

0.2.3 Apr 8, 2024
0.2.0 Mar 15, 2024
0.1.4 Nov 19, 2023
0.1.3 Jun 1, 2023
0.0.7 Nov 21, 2021

#192 in Images

Download history 26/week @ 2024-01-29 9/week @ 2024-02-19 53/week @ 2024-02-26 22/week @ 2024-03-04 185/week @ 2024-03-11 44/week @ 2024-03-18 50/week @ 2024-03-25 167/week @ 2024-04-01 298/week @ 2024-04-08 16/week @ 2024-04-15

539 downloads per month
Used in 2 crates

MIT license

180KB
2K 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

~9MB
~182K SLoC