https://github.com/schollz/svg2gcode
Converts svg to gcode for pen plotters
https://github.com/schollz/svg2gcode
Last synced: 6 months ago
JSON representation
Converts svg to gcode for pen plotters
- Host: GitHub
- URL: https://github.com/schollz/svg2gcode
- Owner: schollz
- License: mit
- Created: 2022-04-08T03:54:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-15T14:23:11.000Z (over 3 years ago)
- Last Synced: 2025-04-22T10:35:14.242Z (6 months ago)
- Language: Go
- Homepage: https://schollz.com/blog/one-line/
- Size: 129 KB
- Stars: 55
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svg2gcode
Converts svg to gcode for pen plotters. Read more about it on [my blog](https://schollz.com/blog/one-line/).
## Requirements (optional)
If you want to convert a image to an svg, you will need imagemagick and autotrace.
```bash
sudo apt update
sudo apt install intltool imagemagick libmagickcore-dev pstoedit libpstoedit-dev autopointgit clone https://github.com/autotrace/autotrace.git
cd autotrace
./autogen.sh
LD_LIBRARY_PATH=/usr/local/lib ./configure --prefix=/usr
make
sudo make install
```(Windows users an just download `autotrace` from [here](https://github.com/scottvr/autotrace-win64-binaries/tree/master/bin)).
## Usage
```
git clone https://github.com/schollz/svg2gcode
cd svg2gcode
make camel.gcode
```## Other similar repos
- https://github.com/mnk343/Single-Line-Portrait-Drawing
- https://github.com/davekch/linerizer
- https://github.com/javierbyte/pintr