about rendering SVG in online editor

General discussions about Inkscape.
viplipmc
Posts: 2
Joined: Tue Jul 31, 2012 1:48 pm

about rendering SVG in online editor

Postby viplipmc » Tue Jul 31, 2012 1:55 pm

Hi there,
I am using inkscape to generate SVG, I try to draw a line and add the arrowhead (Arrow1mend) in the stroke style. After that, I upload the svg to a online svg editor ( https://code.google.com/p/svg-edit/) but I don't know why, that editor will remove all the arrowheads. I try to use other svg editor to generate the svg with arrows and upload again, it works. So I am wondering if anyone know the reason of causing the loss of the arrow. Thanks.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: about rendering SVG in online editor

Postby brynn » Tue Jul 31, 2012 3:03 pm

Image
Welcome to InkscapeForum!

I'm not familiar with that editor, but I wonder if you've tried saving in Inkscape as Plain SVG instead of Inkscape SVG? I don't understand the difference, but there is one, and sometimes that, will help. Good luck :D

viplipmc
Posts: 2
Joined: Tue Jul 31, 2012 1:48 pm

Re: about rendering SVG in online editor

Postby viplipmc » Tue Jul 31, 2012 3:22 pm

brynn wrote:Image
Welcome to InkscapeForum!

I'm not familiar with that editor, but I wonder if you've tried saving in Inkscape as Plain SVG instead of Inkscape SVG? I don't understand the difference, but there is one, and sometimes that, will help. Good luck :D

Thanks for your reply. Yes, I tried that one, but it doesn't work. Maybe it is the problem of that editor, I don't know :(

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: about rendering SVG in online editor

Postby v1nce » Wed Aug 01, 2012 9:27 am


User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: about rendering SVG in online editor

Postby brynn » Wed Aug 01, 2012 9:38 am

Image Well, "Import SVG into Drawing" is listed in Features, as well as "Connector Lines and Arrows" (at the link you provided). I guess you've tried importing as well as opening?

Technically....I'm not sure what a Marker really is. I only understand how Inkscape works in very general tems. The Feature list in that editor also includes "Line Joins and End Caps" which would seem to be like a marker. I wonder if markers could be tiny raster elements? Is it possible to open or import raster images?

Actually I might have to try svg-edit, out of curiosity. I'll look into it later today. If I can get it open and running, I'll try to reproduce the problem. I'll let you know what happens.

Oh! The arrow marker lies fully within the Inkscape page border, right? If it falls outside the border, it might seem reasonable that is doesn't appear.

Oops, hi v1nce, you posted while I was typing :D

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: about rendering SVG in online editor

Postby brynn » Wed Aug 01, 2012 12:01 pm

Ok, this is strange. Using the demo version, I opened a test SVG with the same arrow marker you described. And I have the same result -- the marker doesn't show up. The weird thing is that when I look at the XML/SVG, in that editor, it does show that the marker is there.

<path fill="none" stroke="#000000" stroke-width="1px" stroke-miterlimit="4" stroke-dashoffset="0" marker-end="url(#Arrow1Mend) " id="path2993" d="m559,545l97,-242"/>

I'm not sure the significance of that. I guess it does indicate that the file contains the marker, and that for some reason, it can't be displayed. I'm not sure what you plan to do with whatever you're using that editor to do. But....well, let me try it.... Ok, I was going to say that since the marker is in the code for the image, it might still be there after you save the image. But it doesn't show in the saved image/page either. However, if I look at the source of the saved image/page, it also contains the marker in the code.

Keeping in mind that I don't understand any of this from a technical perspective, I would guess that this is a bug. But I don't really know. If you save the image from off of the page, and display it in a viewer that's capable of displaying SVG, I wonder if the marker would show up? Maybe it's something about the program's display?


Return to “General Discussions”