svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
699 stars 176 forks source link

SVG file opening error, the same file can be normal in the previous version #138

Closed lianzaozi closed 4 years ago

lianzaozi commented 4 years ago

The following SVG file can be opened normally with software before version V1.3.4.6. The software between version V1.5.0.0 and version V1.5.0.3 cannot open this file.

Test SVG file SVG_Test1.zip

image1 is the screenshot I opened with the software version V1.3.4.6 image1

image2 is the screenshot I opened with the software version V1.5.0.3 image2

svenhb commented 4 years ago

I could fix it, but I think this SVG-code is not good, just one graphic-line per code-line - so much overhead to draw a line...

<g clip-path="url(#cp0)">
<path transform="matrix(.12,0,0,-.12,0,3061)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" fill="none" stroke="rgb(0,0,0)" d="M 5588.992 250.07843 L 39769.008 250.07843 "/>
<path transform="matrix(.12,0,0,-.12,0,3061)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" fill="none" stroke="rgb(0,0,0)" d="M 39769.008 250.07843 L 39769.008 25257.922 "/>
lianzaozi commented 4 years ago

Thank you for your reply, this svg file is converted from dxf file using converter software.

lianzaozi commented 4 years ago

I open the svg file that comes with the plotter software (path GRBL-Plotter-1.5.0.3\GRBL-Plotter\data\examples). The plotter software will also report an error. There is no problem to open it with the plotter software version before V1.3.4.6.

My operation process is recorded in git animation

gif20

svenhb commented 4 years ago

Both should be fixed in 1.5.0.4 Thanks again for your testing 😃

lianzaozi commented 4 years ago

The plotter software version v1.5.0.4 opens the svg file and it works normally.

svenhb commented 4 years ago

Thanks for feedback