Skip to main content

Create Images by Stacking them

Project description

ImageStack Python

A simple way to create images using svg and jinja2 templating

Build Status PyPi version

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


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)

Uploaded Source

Built Distribution

ImageStack_SVG-1.0.1-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page