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 hashes)
Built Distribution
Close
Hashes for ImageStack_SVG-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10717badddbd266468599c94c70c80ccb598ecd3e0ad00f5ccd38477aed9caee |
|
MD5 | 2e3ae7222bcf250c94f3681999cf07ab |
|
BLAKE2b-256 | db116d69782e41bc0f701663cc0633e23306281e898cb6bba04f4be57ae09fed |