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
Metadata
Release files for imagestack-svg 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imagestack_svg-1.1.1.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imagestack_svg-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.1 kB
Release files / imagestack_svg-1.1.1.tar.gz
| Download URL | imagestack_svg-1.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be41c2d31554b9092512ef36fd3ae127ff36d31f192866376d252a7e79b99e3d
|
|
BLAKE2b-256 checksum How to use checksums |
b0f3c45df3991555295a49a0dbc46ae160652711b326a21c01137396338c309b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Release files / imagestack_svg-1.1.1-py3-none-any.whl
| Download URL | imagestack_svg-1.1.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd09fb019442e1441c164c7ba391b5517790d4cffeb9bfe3fee783f49d898f00
|
|
BLAKE2b-256 checksum How to use checksums |
3d203131ad14e3973f17d2fab8fda386dc453abfa7da22a38e29d6c39b0baee4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|