Skip to content

Simple command line interface to convert svg image to gcode

License

Notifications You must be signed in to change notification settings

halina20011/Svg2Gcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svg2Gcode

Simple command line interface to convert svg image to gcode

Dependencies

libxml2

Build

build main

Help message

Arguments:
	--help            show this help message
	-f [file]         set input svg image
	-o [file]         set name of output file, if not set "output.gcode" will be used
	-w [scale]        scale image width to this size in mm
	-h [scale]        scale image height to this size in mm
	-r                keep the ratio when scalling with "-w" or "-h"
	-c                move the image to the center of given size (width and height have to be set)
	-cw [size]        specify max print width
	-ch [size]        specify max print height
	-z [offset]       set z offset when traveling in mm (default)
	-s [speed]        set speed rate for drawing in mm/min (default 1500 mm/min)
	-st [speed]       set speed rate for traveling at x, y axis in mm/min (default 5000 mm/min)
	-sz [speed]       set speed rate for traveling at z axis (up) in mm/min (default 3000 mm/min)

Examples

./build/svg2Gcode -f Examples/loremIpsum.svg -cw 220 -ch 220 -c
./build/svg2Gcode -f ./Examples/text.svg -z 10 -w 220 -h 200 -o ./Examples/example.gcode
./build/svg2Gcode -f ./Examples/img1.svg

About

Simple command line interface to convert svg image to gcode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published