svg2gcode 3.2.4__tar.gz → 3.2.6__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.
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/PKG-INFO +7 -2
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/README.md +6 -1
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/__init__.py +1 -1
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/__main__.py +1 -1
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/LICENSE +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/pyproject.toml +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/LICENSE +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/__init__.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/compiler/__init__.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/compiler/_compiler.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/compiler/interfaces/__init__.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/compiler/interfaces/_abstract_interface.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/compiler/interfaces/_fan_controlled_gcode.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/compiler/interfaces/_gcode.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/css_color.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/formulas.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/__init__.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_abstract_chain.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_abstract_curve.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_circular_arc.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_cubic_bazier.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_elliptical_arc.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_line.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_line_segment_chain.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_matrix.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_quadratic_bazier.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_raster_image.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_smooth_arc_chain.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/geometry/_vector.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/svg_parser/__init__.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/svg_parser/_parser_methods.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/svg_parser/_path.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/svg_parser/_transformation.py +0 -0
- {svg2gcode-3.2.4 → svg2gcode-3.2.6}/svg2gcode/svg_to_gcode/svg_parser/debug_methods.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: svg2gcode
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.6
|
|
4
4
|
Summary: svg2gcode: convert an SVG (Scalable Vector Graphic) image to gcode.
|
|
5
5
|
Keywords: scalable vector graphics,svg,image,laser cutter,laser engraving
|
|
6
6
|
Author-email: Johannes Noordanus <mailjohannes.mailnoordanus@gmail.com>
|
|
@@ -127,7 +127,7 @@ options:
|
|
|
127
127
|
--overscan <default:0>
|
|
128
128
|
overscan image lines to avoid incorrect power levels for pixels at left and right borders, number in pixels, default off
|
|
129
129
|
--showoverscan show overscan pixels (note that this is visible and part of the gcode emitted!)
|
|
130
|
-
--constantburn
|
|
130
|
+
--constantburn set constant burn mode M3 (default set to dynamic burn mode M4); this enhances engraving quality
|
|
131
131
|
--origin delta-x delta-y
|
|
132
132
|
translate origin by vector (delta-x,delta-y) in mm (default not set, option --selfcenter cannot be used at the same time)
|
|
133
133
|
--scale factor-x factor-y
|
|
@@ -155,6 +155,7 @@ imagespeed = 6000
|
|
|
155
155
|
It can be used with any parameter which takes a value, and alows to persist your laser settings.
|
|
156
156
|
You can create this configuration file using an editor like vi or nano.
|
|
157
157
|
An alternative (quick) way to do that is to enter:
|
|
158
|
+
```
|
|
158
159
|
$ mkdir ~/.config
|
|
159
160
|
$ echo "xmaxtravel= 400
|
|
160
161
|
ymaxtravel= 400
|
|
@@ -289,6 +290,10 @@ One containing the drawings of the .svg, the other containing the images:
|
|
|
289
290
|
> logo_images.gc # all images
|
|
290
291
|
```
|
|
291
292
|
|
|
293
|
+
### Burn mode M3/M4:
|
|
294
|
+
|
|
295
|
+
Default *svg2gcode* uses dynamic burn mode *M4*. This can be changed by setting option *--constantburn* which selects burn mode *M3*. 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* (called by *svg2gcode*) 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.
|
|
296
|
+
|
|
292
297
|
### Notes:
|
|
293
298
|
- drawing objects - within the composer - must be converted to a```path```to be translated to a gcode sequence
|
|
294
299
|
- also, image objects should **not** be converted to a ```path```
|
|
@@ -113,7 +113,7 @@ options:
|
|
|
113
113
|
--overscan <default:0>
|
|
114
114
|
overscan image lines to avoid incorrect power levels for pixels at left and right borders, number in pixels, default off
|
|
115
115
|
--showoverscan show overscan pixels (note that this is visible and part of the gcode emitted!)
|
|
116
|
-
--constantburn
|
|
116
|
+
--constantburn set constant burn mode M3 (default set to dynamic burn mode M4); this enhances engraving quality
|
|
117
117
|
--origin delta-x delta-y
|
|
118
118
|
translate origin by vector (delta-x,delta-y) in mm (default not set, option --selfcenter cannot be used at the same time)
|
|
119
119
|
--scale factor-x factor-y
|
|
@@ -141,6 +141,7 @@ imagespeed = 6000
|
|
|
141
141
|
It can be used with any parameter which takes a value, and alows to persist your laser settings.
|
|
142
142
|
You can create this configuration file using an editor like vi or nano.
|
|
143
143
|
An alternative (quick) way to do that is to enter:
|
|
144
|
+
```
|
|
144
145
|
$ mkdir ~/.config
|
|
145
146
|
$ echo "xmaxtravel= 400
|
|
146
147
|
ymaxtravel= 400
|
|
@@ -275,6 +276,10 @@ One containing the drawings of the .svg, the other containing the images:
|
|
|
275
276
|
> logo_images.gc # all images
|
|
276
277
|
```
|
|
277
278
|
|
|
279
|
+
### Burn mode M3/M4:
|
|
280
|
+
|
|
281
|
+
Default *svg2gcode* uses dynamic burn mode *M4*. This can be changed by setting option *--constantburn* which selects burn mode *M3*. 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* (called by *svg2gcode*) 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.
|
|
282
|
+
|
|
278
283
|
### Notes:
|
|
279
284
|
- drawing objects - within the composer - must be converted to a```path```to be translated to a gcode sequence
|
|
280
285
|
- also, image objects should **not** be converted to a ```path```
|
|
@@ -127,7 +127,7 @@ def main() -> int:
|
|
|
127
127
|
parser.add_argument('--overscan', default=cfg["overscan_default"], metavar="<default:" +str(cfg["overscan_default"])+ ">",
|
|
128
128
|
type=int, help="overscan image lines to avoid incorrect power levels for pixels at left and right borders, number in pixels, default off")
|
|
129
129
|
parser.add_argument('--showoverscan', action='store_true', default=False, help='show overscan pixels (note that this is visible and part of the gcode emitted!)' )
|
|
130
|
-
parser.add_argument('--constantburn', action='store_true', default=False, help='
|
|
130
|
+
parser.add_argument('--constantburn', action='store_true', default=False, help='set constant burn mode M3 (default is dynamic burn mode M4); this enhances engraving quality')
|
|
131
131
|
parser.add_argument('--origin', default=None, nargs=2, metavar=('delta-x', 'delta-y'),
|
|
132
132
|
type=float, help="translate origin by vector (delta-x,delta-y) in mm (default not set, option --selfcenter cannot be used at the same time)")
|
|
133
133
|
parser.add_argument('--scale', default=None, nargs=2, metavar=('factor-x', 'factor-y'),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|