Project

svgcode

0.0
No release in over 3 years
Low commit activity in last 3 years
A Ruby gem to convert SVG to 2.5D Gcode
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
>= 0
>= 0
~> 10.0
~> 3.0
>= 0

Runtime

~> 1.8
~> 0.20
 Project Readme

Svgcode

A Ruby Gem for transposing SVG into G-code.

It is specifically designed to take advantage of the link between SVG's bezier curves and LinuxCNC's G5 command.

It has been fairly thorougly tested with SVGs exported from Affinity Designer, though you will need to check the "Export text as curves for font independence" option as the SVG text element is currently not handled.

Also, you must ensure that the DPI is set to 300 when exporting.

Other SVG features which are yet to be handled:

  • horizontal and vertical lines
  • quadratic bezier curves
  • arcto
  • non-matrix transforms

For more temporary shortcomings, please see TODO.md.

Installation

gem install svgcode

Usage

CLI

To display usage:

svgcode help parse # see bin/svgcode

API

Docs to come.