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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ImageStack SVG-1.0.1.tar.gz.

File metadata

  • Download URL: ImageStack SVG-1.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for ImageStack SVG-1.0.1.tar.gz
Algorithm Hash digest
SHA256 da10cbac55b40ddf75e04c5047ef8a86178cc0b7a8e14969d7468a628d906322
MD5 f4513b47cb5182227413e649bccbfa5e
BLAKE2b-256 774fa8485ef80783ead50045659d00f364e8ee8f2a4897980c78249e4dba730a

See more details on using hashes here.

File details

Details for the file ImageStack_SVG-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ImageStack_SVG-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5789294943b238f6c0a053968aebe0b3fd11924ac8098dc1d162caae9be5291
MD5 70827bc8b48fb86f8519bd65839b9240
BLAKE2b-256 0c5b9a526b5d2178cfd1be8f9c2ec6c75c0dfe999e9b1643cfcb1e2e4410e1fd

See more details on using hashes here.

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