Skip to main content

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

Metadata

Release files for imagestack-svg 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imagestack-svg 1.1.1
File Size Uploaded
imagestack_svg-1.1.1.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imagestack-svg 1.1.1
File Interpreter ABI Platform
imagestack_svg-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / imagestack_svg-1.1.1.tar.gz

Download URL imagestack_svg-1.1.1.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
be41c2d31554b9092512ef36fd3ae127ff36d31f192866376d252a7e79b99e3d
BLAKE2b-256 checksum
How to use checksums
b0f3c45df3991555295a49a0dbc46ae160652711b326a21c01137396338c309b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release files / imagestack_svg-1.1.1-py3-none-any.whl

Download URL imagestack_svg-1.1.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd09fb019442e1441c164c7ba391b5517790d4cffeb9bfe3fee783f49d898f00
BLAKE2b-256 checksum
How to use checksums
3d203131ad14e3973f17d2fab8fda386dc453abfa7da22a38e29d6c39b0baee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

3 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page