Inkscape extension to export SVG layers as standalone PNG, SVG or JPEG images. The exported images can be a combination of multiple layers.
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 Ctrl + E).
There are two options for your layers when exporting:
[fixed]: If a layer label starts with the prefix[fixed]this layer is always exported and combined with other layers. It is very useful for backgrounds or fixed elements.[export]: If a layer label starts with[export]this layer is exported along with any[fixed]layer and combined into a single image.
The order of layers remains untouched during export, i.e. a higher layer in the layer list is drawn above lower layers.
Example
The layer [fixed] Background is a fixed layer and will always be exported combined with the [export] layers.
Once export is complete, we get two images: the combination of version 1 + Background and
version 2 + Background.
To use the extension once your layers are ready:
- Go to
Extensions>Export>Export layers... - Type or paste the path of a directory you want to export your files to (unfortunately, Inkscape does not support file selection dialogs for extensions).
- Choose area to export - either document canvas area or contents area.
- Choose a format of your export -
PNG,SVGorJPEG(JPEGrequired theImageMagickinstalled in your system). - Choose a required DPI.
- Choose whether to enumerate exported files with prefixes (
001_,002_etc). - Click
Apply.
