image2gcode 2.9.10__tar.gz → 2.9.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: image2gcode
3
- Version: 2.9.10
3
+ Version: 2.9.11
4
4
  Summary: image2gcode: convert an image to gcode.
5
5
  Keywords: engraving,laser,image,laser engraving,PWM,gcode
6
6
  Author-email: Johannes Noordanus <mailjohannes.mailnoordanus@gmail.com>
@@ -29,6 +29,7 @@ It is possible to validate the gcode produced in one go: its size, placement and
29
29
 
30
30
  Note that to get great engravings it is important to use source images that have a high contrast ratio, because burnlevels have less intensity range. To get an engraving the right size, make sure images have enough pixels.
31
31
  For example if your machines laser width is 0.08mm I would recomment using a pixel size of 0.1mm; an engraving of 50x65 mm^2 (*width*x*height*) will need the source image resolution to be 500x650 pixels (*width*x*height*) in this case.
32
+
32
33
  It is also possible to set the DPI of an image to be exported from Inkscape (for example) and so get the right resolution for your laser machine. In this case the image to be exported should have a DPI setting of 254 (one inch is 25.4mm/0.1 = 254), note the image size when you do the export, because that will be exacly what you get on the laser machine!
33
34
 
34
35
  If this is too cumbersome, use option --size (release 2.5.0 or above), also for conveniance, to get the origin at the center, set --center. Note that --size will make a conversion of the source image.
@@ -83,11 +84,11 @@ The result file 'test.gc' contains highly optimized gcodes (the file is of minim
83
84
  ### Usage:
84
85
  See notes below.
85
86
  ```
86
- > image2gcode --help
87
- usage: image2gcode [-h] [--showimage] [--pixelsize <default:0.1>] [--speed <default:800>] [--maxpower <default:300>] [--poweroffset <default:0>]
88
- [--size gcode-width gcode-height] [--offset X-off Y-off] [--center] [--speedmoves <default:10>] [--noise <default:0>] [--overscan <default:0>]
89
- [--showoverscan] [--constantburn] [--validate] [--genimages pixel-width pixel-height write] [-V]
90
- [image] [gcode]
87
+ image2gcode --help
88
+ usage: image2gcode [-h] [--showimage] [--pixelsize <default:0.1>] [--speed <default:1200>] [--maxpower <default:300>] [--poweroffset <default:0>] [--invert | --no-invert]
89
+ [--size gcode-width gcode-height] [--offset X-off Y-off] [--center] [--speedmoves <default:10>] [--noise <default:0>] [--overscan <default:0>]
90
+ [--showoverscan] [--constantburn | --no-constantburn] [--validate] [--genimages pixel-width pixel-height write] [-V]
91
+ [image] [gcode]
91
92
 
92
93
  Convert an image to gcode for GRBL v1.1 compatible diode laser engravers,
93
94
  each image pixel is converted to a gcode move of pixelsize length.
@@ -101,13 +102,14 @@ options:
101
102
  --showimage show b&w converted image
102
103
  --pixelsize <default:0.1>
103
104
  pixel size in mm (XY-axis): each image pixel is drawn this size
104
- --speed <default:800>
105
+ --speed <default:1200>
105
106
  draw speed in mm/min
106
107
  --maxpower <default:300>
107
108
  maximum laser power while drawing (as a rule of thumb set to 1/3 of the maximum of a machine having a 5W laser)
108
109
  --poweroffset <default:0>
109
110
  pixel intensity to laser power: shift power range [0-maxpower]
110
- --noinvert do not invert the image
111
+ --invert, --no-invert
112
+ default invert image pixels
111
113
  --size gcode-width gcode-height
112
114
  target gcode width and height in mm (default: not set and determined by pixelsize and image source resolution)
113
115
  --offset X-off Y-off laser drawing starts at offset in mm (default not set, --center cannot be set at the same time)
@@ -118,10 +120,11 @@ options:
118
120
  --overscan <default:0>
119
121
  overscan image lines to avoid incorrect power levels for pixels at left and right borders, number in pixels, default off
120
122
  --showoverscan show overscan pixels (note that this is visible and part of the gcode emitted!)
121
- --constantburn select constant burn mode M3 (a bit more dangerous!), instead of dynamic burn mode M4
123
+ --constantburn, --no-constantburn
124
+ default constant burn mode (M3)
122
125
  --validate validate gcode file, do inverse and show image result
123
126
  --genimages pixel-width pixel-height write
124
- write (when set non zero) 11 calibration images of given pixel size to as much files
127
+ write (when set non zero) a set of test (calibration) images to the file system
125
128
  -V, --version show version number and exit
126
129
  ```
127
130
  You can also store those settings in ~/.config/image2gcode.toml, eg:
@@ -180,9 +183,12 @@ The ideal white balance for my 5W laser is at *speed* 1200 and *maxpower* 300, w
180
183
  Cutting depth of the 10W laser seems to be a factor 2 though.
181
184
  Also, contrast of the 5W laser is a lot better than that of the 10W laser. Images engraved by the 5W laser are laser sharp and smooth, while the 10W laser images are sharp, have reasonable smoothness and twice the cutting depth.
182
185
 
186
+ **Burn mode M3/M4**
187
+
188
+ Default *image2gcode* uses constant burn mode *M3* (version 2.9.10 and later). This can be overruled by setting option *--no-constantburn* which selects burn mode *M4*. Mode *M4* is not suitable for engravings because it automatically compensates (laser)power for speed. This conflicts with the specific gcode settings given by *image2gcode* for each pixel. In fact some experiments show that *M4* causes loss of quality and image deterioration when speed is increased. On white oak images had too much black and grey which did not go away for substantially higher speed. When switched back to constant burn (*M3*) mode, the same high speed gave excellent images having a sepia (licht yellow brown) color tone.
189
+
183
190
  **Wood**
184
191
 
185
192
  Obviously wood hardness determines the cutting depth (relief) of the engraving and a dark color reduces the contrast of the image.
186
193
  Note also that the white balance of an engraving is possibly shifted for different types of wood.
187
194
 
188
-
@@ -14,6 +14,7 @@ It is possible to validate the gcode produced in one go: its size, placement and
14
14
 
15
15
  Note that to get great engravings it is important to use source images that have a high contrast ratio, because burnlevels have less intensity range. To get an engraving the right size, make sure images have enough pixels.
16
16
  For example if your machines laser width is 0.08mm I would recomment using a pixel size of 0.1mm; an engraving of 50x65 mm^2 (*width*x*height*) will need the source image resolution to be 500x650 pixels (*width*x*height*) in this case.
17
+
17
18
  It is also possible to set the DPI of an image to be exported from Inkscape (for example) and so get the right resolution for your laser machine. In this case the image to be exported should have a DPI setting of 254 (one inch is 25.4mm/0.1 = 254), note the image size when you do the export, because that will be exacly what you get on the laser machine!
18
19
 
19
20
  If this is too cumbersome, use option --size (release 2.5.0 or above), also for conveniance, to get the origin at the center, set --center. Note that --size will make a conversion of the source image.
@@ -68,11 +69,11 @@ The result file 'test.gc' contains highly optimized gcodes (the file is of minim
68
69
  ### Usage:
69
70
  See notes below.
70
71
  ```
71
- > image2gcode --help
72
- usage: image2gcode [-h] [--showimage] [--pixelsize <default:0.1>] [--speed <default:800>] [--maxpower <default:300>] [--poweroffset <default:0>]
73
- [--size gcode-width gcode-height] [--offset X-off Y-off] [--center] [--speedmoves <default:10>] [--noise <default:0>] [--overscan <default:0>]
74
- [--showoverscan] [--constantburn] [--validate] [--genimages pixel-width pixel-height write] [-V]
75
- [image] [gcode]
72
+ image2gcode --help
73
+ usage: image2gcode [-h] [--showimage] [--pixelsize <default:0.1>] [--speed <default:1200>] [--maxpower <default:300>] [--poweroffset <default:0>] [--invert | --no-invert]
74
+ [--size gcode-width gcode-height] [--offset X-off Y-off] [--center] [--speedmoves <default:10>] [--noise <default:0>] [--overscan <default:0>]
75
+ [--showoverscan] [--constantburn | --no-constantburn] [--validate] [--genimages pixel-width pixel-height write] [-V]
76
+ [image] [gcode]
76
77
 
77
78
  Convert an image to gcode for GRBL v1.1 compatible diode laser engravers,
78
79
  each image pixel is converted to a gcode move of pixelsize length.
@@ -86,13 +87,14 @@ options:
86
87
  --showimage show b&w converted image
87
88
  --pixelsize <default:0.1>
88
89
  pixel size in mm (XY-axis): each image pixel is drawn this size
89
- --speed <default:800>
90
+ --speed <default:1200>
90
91
  draw speed in mm/min
91
92
  --maxpower <default:300>
92
93
  maximum laser power while drawing (as a rule of thumb set to 1/3 of the maximum of a machine having a 5W laser)
93
94
  --poweroffset <default:0>
94
95
  pixel intensity to laser power: shift power range [0-maxpower]
95
- --noinvert do not invert the image
96
+ --invert, --no-invert
97
+ default invert image pixels
96
98
  --size gcode-width gcode-height
97
99
  target gcode width and height in mm (default: not set and determined by pixelsize and image source resolution)
98
100
  --offset X-off Y-off laser drawing starts at offset in mm (default not set, --center cannot be set at the same time)
@@ -103,10 +105,11 @@ options:
103
105
  --overscan <default:0>
104
106
  overscan image lines to avoid incorrect power levels for pixels at left and right borders, number in pixels, default off
105
107
  --showoverscan show overscan pixels (note that this is visible and part of the gcode emitted!)
106
- --constantburn select constant burn mode M3 (a bit more dangerous!), instead of dynamic burn mode M4
108
+ --constantburn, --no-constantburn
109
+ default constant burn mode (M3)
107
110
  --validate validate gcode file, do inverse and show image result
108
111
  --genimages pixel-width pixel-height write
109
- write (when set non zero) 11 calibration images of given pixel size to as much files
112
+ write (when set non zero) a set of test (calibration) images to the file system
110
113
  -V, --version show version number and exit
111
114
  ```
112
115
  You can also store those settings in ~/.config/image2gcode.toml, eg:
@@ -165,8 +168,11 @@ The ideal white balance for my 5W laser is at *speed* 1200 and *maxpower* 300, w
165
168
  Cutting depth of the 10W laser seems to be a factor 2 though.
166
169
  Also, contrast of the 5W laser is a lot better than that of the 10W laser. Images engraved by the 5W laser are laser sharp and smooth, while the 10W laser images are sharp, have reasonable smoothness and twice the cutting depth.
167
170
 
171
+ **Burn mode M3/M4**
172
+
173
+ Default *image2gcode* uses constant burn mode *M3* (version 2.9.10 and later). This can be overruled by setting option *--no-constantburn* which selects burn mode *M4*. Mode *M4* is not suitable for engravings because it automatically compensates (laser)power for speed. This conflicts with the specific gcode settings given by *image2gcode* for each pixel. In fact some experiments show that *M4* causes loss of quality and image deterioration when speed is increased. On white oak images had too much black and grey which did not go away for substantially higher speed. When switched back to constant burn (*M3*) mode, the same high speed gave excellent images having a sepia (licht yellow brown) color tone.
174
+
168
175
  **Wood**
169
176
 
170
177
  Obviously wood hardness determines the cutting depth (relief) of the engraving and a dark color reduces the contrast of the image.
171
178
  Note also that the white balance of an engraving is possibly shifted for different types of wood.
172
-
@@ -1,4 +1,4 @@
1
1
  """
2
2
  image2gcode: convert an image to gcode.
3
3
  """
4
- __version__ = "2.9.10"
4
+ __version__ = "2.9.11"
File without changes