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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file inkscape_layer_utils-0.7.0.tar.gz.

File metadata

  • Download URL: inkscape_layer_utils-0.7.0.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for inkscape_layer_utils-0.7.0.tar.gz
Algorithm Hash digest
SHA256 1f0e7f572ceb97a3ca3ae0d91bedf0a77a8fdfa01d1e7aa4bab58ed01fb76f88
MD5 77d9e95b6fd16eb14704a2e59d5795e9
BLAKE2b-256 dc2566be33eb0f387bdbaf9c7a5470ea0798a401dd5e21ec41a3ff1c671dfe21

See more details on using hashes here.

File details

Details for the file inkscape_layer_utils-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inkscape_layer_utils-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27039851f82e2a57057c84b99bbb90cb8a41cbaf01bdd8b19d4fe7feecf17c87
MD5 579c08d70d6fca162d7a7ba94af5a356
BLAKE2b-256 e3fdac92bc4a1c903ec0f11fd13ba8ee1edf9ee72caea5719a9fe0122ca8ba00

See more details on using hashes here.

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