gcode2image: convert gcode to image.
Project description
gcode2image
Convert gcode to pixel exact image files. Images can be shown with origin and grid to check laser cutter (CNC) start coordinates and image parameters.
gcode2image can be used alongside grblhud, image2gcode and svg2gcode for a commandline driven workflow. (https://github.com/johannesnoordanus/.)
Install:
Depends on python libraries numpy, PIL and skimage.
>
> pip install gcode2image
Usage:
$ gcode2image --help
usage: gcode2image [-h] [--resolution <default: 0.1>] [--showimage] [--showG0] [--showorigin] [--flip] [--grid] [-V] gcode image
Convert a gcode file to image.
positional arguments:
gcode name of gcode file to convert
image image out
options:
-h, --help show this help message and exit
--resolution <default: 0.1>
define image resolution by pixel size (in mm^2): each image pixel is drawn this size
--showimage show b&w converted image
--showG0 show G0 moves
--showorigin show image origin (0,0)
--flip flip image updown
--grid show a grid 10mm wide
-V, --version show version number and exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gcode2image-2.3.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for gcode2image-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 090d2c6fe6221f49202aaeab18103277b47e81b6826a72bd7682d60d8d80de8b |
|
MD5 | e28e30114f1597134bf101881e749363 |
|
BLAKE2b-256 | 03eeb9cee60373bb3c9af84122ff85901e97415cbeef0a48d928f9589778c93b |