SVG Paths with marker endings render only the markers, not the paths
- Import the attached SVG file into Illustrator.
expected result: Illustrator should display a line with an arrow at the end.
actual result: Illustrator displays only the arrow at the end.
also attached: image of problem behavior.
removing the marker-end attribute from the path in question will display the line.
-
Christopher Watson commented
Just a quick follow-up to say that I got tired of waiting for this to be implemented fully in SVG import, so I solved the marker ending issue myself with some good ol' trig and an added SVG line element. Now my application can spit out SVG with marker-like line endings that automatically orient to the vector of the parent line, and have it look perfect when imported in Illustrator. Thanks for nothing, Adobe.
-
Christopher Watson commented
Aaaand... STILL not working in 25.4.1. Unreal. Is this because COVID has decimated development, and there just isn't anyone woking on SVG import anymore?
-
Christopher Watson commented
STILL not working in 25.0.1. Sigh....
-
Christopher Watson commented
And STILL not working in Illustrator 2021 (25.0). As far as SVG import goes, this would seem like a very trivial fix. But apparently it's an extremely difficult thing to accomplish, not deleting the object that a marker is targeting. Disappointed, to say the least.
-
Christopher Watson commented
I was going to add this specific bug (even though there is an umbrella feature request for complete SVG import support), but I see here that it had already been reported a year ago. This issue is prohibiting me from implementing what I need in my astronomical charts, which is the ability to use marker-end styles to put special caps on the ends of certain paths. Still not working in Illustrator 24.3. Sigh....
-
Moritz Schäfer commented
Since one year? This bug looks quiet trivial to me..
-
JKoblitz commented
Thank you so much, this works like a charm! You really saved me :)
-
David Gloriam commented
Thanks!
I found another workaround via svg to pdf conversion using inkscape command line:
inkscape -D --export-type=pdf --export-ignore-filters name.svg -
JKoblitz commented
I know a really, really ugly and annoying workaround...
I copy the SVG and remove all "<marker>" from the def section at the bottom (in my favourite text editor). By doing this, the paths are showing up again in Illustrator. Afterwards, I copy the arrow heads from the original file into this new file (also in illustrator).
As I said. Ugly and annoying. But I don't have another solution for this either. -
David Gloriam commented
Still not working in MacOS 10.15.5 and Illustrator 24.1.3. IF you know a workaround, please let me know.
-
JKoblitz commented
Still doesn't work in the current version of CC 2020 (Windows 10). Markers are a basic feature of SVG since 2011 and they are supported by every browser (even IE!) You should really fix this issue.
-
David Negley commented
MacOS Mojave 10.14.6
Illustrator CC 20191. rename the attached .txt file to .svg and import the SVG file into Illustrator.
expected result: Illustrator should display a line with an arrow at the end.
actual result: Illustrator displays only the arrow at the end.also attached: image of problem behavior.
removing the marker-end attribute from the path in question will display the line.