7

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.

  • 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. – Ananda Mahto Dec 21 '12 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 Jul 22 '13 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 May 16 '14 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. – Simon White Feb 3 '16 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. – Scribblemacher Aug 8 '16 at 11:42
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, privacy policy and cookie policy

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