You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use svg-flatten to convert SVG images to kicad footprints (silkscreen graphics).
My drawings contain multiple closed shapes with cutouts but these are rendered as plain filled areas, here are original image from inkscape and result in kicad:
Am I missing something or do I need specific preparation of the SVG file ?
The command line I use is: svg-flatten --format kicad --sexp-layer F.SilkS --sexp-mod-name tentacles_02 tentacles2.svg ../pcb/drawings.pretty/tentacles_02.kicad_mod
Thank you very much 😀
The text was updated successfully, but these errors were encountered:
plut0nium
changed the title
Problem with SVG image containing cutouts
Problem with SVG image containing hollow cutouts
Feb 16, 2021
Thank you for the test file. I have had a look and your problem should be fixed in v2.0.6, now on the main branch and on pypi.
The underlying issue was that your SVG for some reason contained only open paths and no closed paths at all. In SVG, an open path is one whose two ends are not connected, like the shape of the letter "C" vs. "O". In SVG, filling open subpaths like that is still well-defined behavior (spec) even though here it likely is not what you want since when setting a stroke, things will look weird around the spot where the two ends of the path are.
Gerbolyze now handles this case according to spec and the resulting kicad_mod looks as you would expect. Please check it out, and feel free to re-open this issue or to open another issue should it not work as expected.
I am trying to use svg-flatten to convert SVG images to kicad footprints (silkscreen graphics).
My drawings contain multiple closed shapes with cutouts but these are rendered as plain filled areas, here are original image from inkscape and result in kicad:
Am I missing something or do I need specific preparation of the SVG file ?
The command line I use is:
svg-flatten --format kicad --sexp-layer F.SilkS --sexp-mod-name tentacles_02 tentacles2.svg ../pcb/drawings.pretty/tentacles_02.kicad_mod
Thank you very much 😀
The text was updated successfully, but these errors were encountered: