Create Images by Stacking them
Project description
ImageStack Python
A simple way to create images using svg and jinja2 templating
Installation
Install with pip
pip install imagestack-svg
Running without display
xvfb-run python3 {your application}
Test Design
You can test your SVG Design here: https://skillor.github.io/imagestack-svg-python/
Usage
from imagestack_svg.imagecreator import ImageCreator
from imagestack_svg.imageresolve import ImageStackResolveString
ig = ImageCreator()
s = ImageStackResolveString('<text>{{ dummy }}</text>')
s(dummy='Hello World!')
print(await ig.create_inner_svg(s))
with open('test.png', 'wb') as f:
f.write((await ig.create_bytes(s)).read())
more examples here: https://github.com/skillor/imagestack-svg-python/blob/master/test.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ImageStack SVG-1.0.0.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ImageStack SVG-1.0.0.tar.gz.
File metadata
- Download URL: ImageStack SVG-1.0.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62739bcedd8be9a161fca6ff898e1403c45e7c45a9d9f2d21f43278df57994b0
|
|
| MD5 |
79a2ba0e1d7663e8e785e2d765a39210
|
|
| BLAKE2b-256 |
160c7e1ac43d86e9ab7dcfc671f6d1269e4455d7dfd22f36d57068f50c5151f7
|
File details
Details for the file ImageStack_SVG-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ImageStack_SVG-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10717badddbd266468599c94c70c80ccb598ecd3e0ad00f5ccd38477aed9caee
|
|
| MD5 |
2e3ae7222bcf250c94f3681999cf07ab
|
|
| BLAKE2b-256 |
db116d69782e41bc0f701663cc0633e23306281e898cb6bba04f4be57ae09fed
|