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.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for ImageStack_SVG-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5789294943b238f6c0a053968aebe0b3fd11924ac8098dc1d162caae9be5291 |
|
MD5 | 70827bc8b48fb86f8519bd65839b9240 |
|
BLAKE2b-256 | 0c5b9a526b5d2178cfd1be8f9c2ec6c75c0dfe999e9b1643cfcb1e2e4410e1fd |