Skip to main content

Simple library to extract and manipulate layers in inkscape SVGs

Project description

Simple utils to interact with Inkscape SVG images and their layers. Typical use case is extracting layers from an input SVG or manipulating attributes of elements in an image (e.g. coloring certain elements).

Take the following multilayer image as an example:

https://raw.githubusercontent.com/twyleg/inkscape_layer_utils/master/docs/_static/imgs/inkscape_test_image_with_layers.png

The architecture of the image can also be visualized like this:

https://raw.githubusercontent.com/twyleg/inkscape_layer_utils/master/docs/_static/imgs/example_image_stacked.svg

Or as a tree:

https://raw.githubusercontent.com/twyleg/inkscape_layer_utils/master/docs/_static/imgs/example_image_tree.svg

The utilities can be used as a library or command line tool. Take a look at the examples section for further explanation.

Examples

All examples can be found in the examples/ directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inkscape_layer_utils-0.7.0.tar.gz (41.7 kB view hashes)

Uploaded Source

Built Distribution

inkscape_layer_utils-0.7.0-py3-none-any.whl (25.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page