8

Is there a way to save an Inkscape drawing so the layer information will not be removed? When I save the drawing as plain SVG and try to open it again in Inkscape, all layers are gone.

8
  • 2
    SVGs don't really support layers. One of the differences between an Inkscape SVG and a plain SVG while saving is that an Inkscape SVG can include some group level tags specific to Inkscape to tell Inkscape to treat that group as a layer. Commented Dec 21, 2012 at 16:21
  • 1
    @AnandaMahto I came across this question, and it's a shame it doesn't have an answer (especially since you have found a workaround!). Would you mind posting it as an answer? That way people can identify it easier, and also upvote it.
    – Yisela
    Commented Jul 22, 2013 at 3:06
  • 1
    FWIW, The PDF format does support layers. A possible work-around for this would be to select the contents of each layer in Inkscape and group it before saving, then in CorelDraw, create a new layer for each group and then ungroup it.
    – WillAdams
    Commented May 16, 2014 at 12:59
  • 1
    SVG supports layers. They are just called “groups.” So you make a group tag and give it an id of “layer 1” and another group tag and give it an id of “layer 2,” etc. Commented Feb 3, 2016 at 16:21
  • 1
    @WillAdams a layer in an Inkscape drawing is actually already a group. If you you inspect the drawing's XML, you can see that it has a special namespaced layer attribute so that Inkscape knows to treat it like a layer. Commented Aug 8, 2016 at 11:42

1 Answer 1

1

Actually DXF-format preserves layer-information. Although many other information is lost throught this way (f.e. fillcolors), and paths might have to be reconnected.

So the answer to this question (preserving layer-information) would be, to save and open as DXF, although it's not very satifying (other information is lost).

(Unfortunately I do not have enough Rep to comment on questions, otherwise I would have done that, instead of writing an answer)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.