Closed abey79 closed 4 years ago
FWIW, here is how I do it in vpype. I'm using SVG pixels (1/96th of an inch) internally, thus the scale factor of 1 when viewBox
is omitted. You'll need some further scaling for whatever units you are using internally.
Should be fixed by 05b0b7b, will release shortly. Not sure yet if it correctly handles viewbox, but your test svg seems to work correctly at least!
Consider the following SVG as seen in InkScape: Once loaded in saxi, the scale is clearly not respected:
Here is the SVG file: vader_10cm_opt.svg.zip
It may be that the
width
andheight
attributes of thesvg
tag are not considered. (Note that in this present SVG, theviewBox
attribute is omitted, but should be honoured as well.)