Using Inkscape 0.91 r13725 (Ubuntu 16.04) the tool imports the SVG at 96dpi, this means a simple SVG with a 50x50 rect gets scaled to a 46.88x46.88 rect.
If I change this line to be >= the file will be imported at 90dpi and be scaled correctly.
I am pretty interested in scripting the process of SVG -> G-code myself, could you help me understand why the DPI scaling happens or is needed? Is it specific to the OpenBuilds-CAM tool? I can specify in SVG a fixed document width and height in MM or inches, then map the path points to that view the viewbox attribute, I don't see why the DPI scaling is required.
Using
Inkscape 0.91 r13725 (Ubuntu 16.04)
the tool imports the SVG at96dpi
, this means a simple SVG with a50x50
rect gets scaled to a46.88x46.88
rect.If I change this line to be
>=
the file will be imported at90dpi
and be scaled correctly.I am pretty interested in scripting the process of SVG -> G-code myself, could you help me understand why the DPI scaling happens or is needed? Is it specific to the OpenBuilds-CAM tool? I can specify in SVG a fixed document width and height in MM or inches, then map the path points to that view the
viewbox
attribute, I don't see why the DPI scaling is required.Thanks for an awesome tool btw!
Steps to reproduce
Inkscape version: Inkscape 0.91 r13725 (Ubuntu 16.04)
Example file from Inkscape 0.91