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.1.0.tar.gz
(7.4 kB
view details)
Built Distributions
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.1.0.tar.gz.
File metadata
- Download URL: imagestack_svg-1.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
397b1560afe5b9cbff4df4afe21c920cb59321885b72535851bf2114fa3e97ac
|
|
| MD5 |
ab4cfd7af679da5c951a76d6ddde0f2c
|
|
| BLAKE2b-256 |
7d770f6cdc4a9417a4e916966651f5273cd556ffa3ca9cf2340bebaa9f05af8c
|
File details
Details for the file imagestack_svg-1.1.0-py3-none-any.whl.
File metadata
- Download URL: imagestack_svg-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b1e673f7b8e2cb3a50c4049e53c1201417722f36fb465d5812262ead85800f
|
|
| MD5 |
ea25396570b42a3601066e6a0fbbe3d1
|
|
| BLAKE2b-256 |
163d53e80b435d86dbf2270dc8823242c924777e5a83f00bce2912d8feb9beb2
|
File details
Details for the file ImageStack_SVG-1.1.0-py3-none-any.whl.
File metadata
- Download URL: ImageStack_SVG-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54ba3801c08fe2bba525e0e3f44d96900994d3aa94fa44ace79c2e3ec844d9d3
|
|
| MD5 |
2fd54845a9d65f84bdec043a3a6fed38
|
|
| BLAKE2b-256 |
b249d9d1c86e5ef84b0e57c08885fbe1b2b0e835e0cb5767d58f063f15a67a99
|