arkypita / LaserGRBL

Laser optimized GUI for GRBL
http://lasergrbl.com
Other
1.19k stars 482 forks source link

SVG not correctly loaded #2139

Open Knut-HH opened 9 months ago

Knut-HH commented 9 months ago

Just wanted to cut this logo: https://www.maerklin.de/typo3conf/ext/torr_template/Resources/Public/img/logo.svg

It loads correct in Inkscape, for example. But in LaserGRBL 5.4.0 the "m" in the logo is somewhat garbled. 2023-10-10 16_12_50-Window

Knut-HH commented 5 months ago

Utensil2-normal Attached file isn't loaded at all, Workspace stays blank. Created with inkscape, neither "Inkscape-SVG" nor "Plain SVG" is loaded by LaserGRBL. Inkscape loads this file just fine.

svenhb commented 5 months ago

This block is not working, because it is not correct SVG (line 119 - 132) if you remove it, it should work: (path elements doesn't have width and height)

    <path
       style="fill:none;stroke:#000000;stroke-width:0.971339"
       id="rect48"
       height="285.69827"
       x="5.5408549"
       y="787.72485"
       width="0" />
    <path
       style="fill:none;stroke:#000000;stroke-width:0.971339"
       id="rect3"
       width="314.12787"
       x="78.495445"
       y="199.47078"
       height="0" />
svenhb commented 5 months ago

The real problem is the missing "d" attribute in the Path element. Most likely someone replaced the rect element with "path" in this blocks.