SVG Imports Incorrectly

So, I’ve tried this in both 1.4.03 and 1.4.01 and got the same results. Has anyone seen SVG curves import as straight lines? Here is a shape that I’m importing, viewing the SVG in Inkscape looks correct.

When I import that same SVG into Lightburn, it imports like this.

I don’t know if this will help you… setting it for the Inkscape 96 dpi…

:smile_cat:

@ranalex It’s a new one by me. Thank you for reporting this.

If you’re willing to share the svg file so I can confirm I’ll get this to the Devs right away.

@JohnJohn I cannot unfortunately. It’s a paid design.

My settings were already setup for 96dpi. I changed it to 72dpi and got the same results.

Usually you can send the support team commercial designs to help them identify and fix the issue.

They won’t give it away…

Good luck

:smile_cat:

I pulled out one of the pieces that was exhibiting this behavior and ensured that it was still screwing up.

debug

I just wasn’t sure how the designer would feel about it. I pulled out one of the offending pieces. Hopefully they can figure out what is going on.

I was able to open your SVG successfully in Adobe Illustrator, CorelDraw, Inkscape, Silhouette Studio, Affinity Designer, and Cuttle.

And Firefox and Chrome…
The SVG code seems OK, made with an old version of Inkscape (0.92.5).
The inner curve is made of two cubic Bézier curves chained together.

Oh, I see!
The curve instruction is:
c-2.83.06-4.82.1-4.29.1,0,0-63.83,47.43-63.32,126.13S60.27,383,60.27,383
Notice the S instruction, drawing a smooth point with the previous point’s reflection. I guess it might not be correctly interpreted by the LB SVG parser.
The code is optimized for size (notice also the -2.83.06, shorter than a more orthodox -2.83,0.06), using this rarely seen S code which avoids another coordinate pair.

If I open the file in Inkscape 1.3 (the latest), move the shape a bit to alter it and save it, it becomes
c -2.83,0.06 -4.82,0.1 -4.29,0.1 0,0 -63.83,47.43 -63.32,126.129997 0.51,78.7 44.2,124.77 44.2,124.77
and LightBurn displays it correctly.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.