Inkscape Export Layers
Inkscape extension to export SVG layers as (JPG, PNG, PDF, LaTeX+PDF) images. The exported images can be a combination of multiple layers defined by one layer group per exported image. Layer groups may intersect. This is useful, e.g., to export multi-step overlays for slides.
How it works
To export your Inkscape file as an image open an inkscape file with multiple layers (otherwise you can simply use the in-built export tool).
Layers are assigned views (virtual groups of layers) that are number from
n. For each view
i, an image is exported that contains all fixed layers and all layers that are active in view
There are two options for your layers when exporting:
- numbered: If a layer label starts with
[-j], this layer will be active in views
j. The default values
j=∞are used when
jare not given, respectively. Technically, the matching regular expression is
- fixed: If a layer label starts with
[fixed], this layer will always be exported and combined with other layers. It is very useful for backgrounds or fixed elements. This is a more readable version of
The maximum number of views is the maximum value of
j of all numbered layers.
To use the extension once your layers are ready:
- Go to Extensions > Export > Export layers
- Choose the path you want to save your file to (inkscape does not allow to use a file explorer, sorry)
- Choose the format of your export (JPG, PNG, PDF, LaTeX+PDF)