Metadata-Version: 2.1
Name: ImageStack-SVG
Version: 1.0.1
Summary: Create Images by Stacking them
Home-page: https://github.com/skillor/imagestack-svg-python
Author: skillor
Author-email: skillor@gmx.net
License: MIT
Keywords: image,imagestack,imagestack-svg,imagestack_svg,svg
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Multimedia :: Graphics
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: PySide2 (>=5.15.2.1)
Requires-Dist: Jinja2 (>=2.11.3)
Requires-Dist: requests (>=2.25)
Requires-Dist: Markupsafe (>=2.0.1)
Requires-Dist: lxml (>=4.6.3)
Requires-Dist: defusedxml (>=0.7.1)

# ImageStack Python

### A simple way to create images using svg and jinja2 templating

[![Build Status](https://github.com/skillor/imagestack-svg-python/actions/workflows/test-python.yml/badge.svg)](https://github.com/skillor/imagestack-svg-python/actions/workflows/test-python.yml) [![PyPi version](https://badgen.net/pypi/v/ImageStack-SVG/)](https://pypi.org/project/ImageStack-SVG)

## 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


