Skip to main content

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


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)

Uploaded Source

Built Distribution

gcode2image-2.3.0-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page