sameer / svg2gcode

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

Home Page:https://sameer.github.io/svg2gcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://sameer.github.io/svg2gcode

License:MIT License


Languages

Language:G-code 70.5%Language:Rust 29.4%Language:HTML 0.1%Language:SCSS 0.0%