No SVG layers exported

Bug #242977 reported by Bastien Nocera on 2008-06-25
Affects Status Importance Assigned to Milestone

Bug Description

Using cairo and librsvg, I can't access the #base and other layers in the Inkscape file, whether saved as Inkscape, or "Plain SVG".

Attached is the program I use to show the base layer and another layer in an SVG file and save it as a PNG file (inkscape doesn't allow the export of multiple layers in one PNG on the command-line, and this application needs to be scripted).

./create-png-version input.svg 360x480 layer-name output.png

Bastien Nocera (hadess) wrote :
Bastien Nocera (hadess) wrote :

I should mention that the above code will create a png file with all the visible layers merged currently, as all the layers are merged onto it.

sas (sas-sas) wrote :

Plain SVG has no layers, because SVG has no concept of layers. Inkscape SVG does have Inkscape layers. So there's no bug here (at least, not in Inkscape).

But there isn't usually a layer called #base, so I wonder if you are confusing layers with IDs. But Inkscape saves the IDs correctly, so there's no bug here either.

Changed in inkscape:
status: New → Invalid
Bastien Nocera (hadess) wrote :

You're clutching at straws. librsvg's documentation calls them layers, it's just a "g" element with a specific ID and all its children.

Anyway, the problem is that the IDs bear absolutely no resemblance to the layer names in Inkscape.

sas (sas-sas) wrote :

If the problem you were reporting was that Inkscape layer names are unrelated to their IDs, then why did you never mention this in your report, and why did you call the report "No SVG layers exported"?

If you want layer IDs to be generated from layer names according to some well-defined algorithm, then please submit a new bug report asking for this.

Bastien Nocera (hadess) wrote :

That would be because I got the cause of the problem wrong... I'll file a new bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments