Metadata-Version: 2.1
Name: transpeg
Version: 1.1.2
Summary: Transparent JPEG emulation via SVG
Home-page: https://github.com/igrmk/transpeg
Author: igrmk
Author-email: igrmkx@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown
Requires-Dist: pillow (>=7.0.0)
Requires-Dist: svgwrite (>=1.4)

<img src="https://raw.githubusercontent.com/igrmk/transpeg/main/example/transpeg.svg" width="196">

Wanna transparent JPEG?
Unfortunately there is no such thing except mostly unsupported JPEG 2000.
But you can convert your transparent image into SVG containing a color information as JPEG and an alpha channel as a greyscale mask.
This simple tool does exactly this.
The logo above is an example.

Usage
=====

    transpeg input.png output.svg

Installation
============

    pip install transpeg

Alternatives
============

1. WebP. Unfortunatelly WebP is not well supperted in Safari yet.
2. https://github.com/tannerhodges/gulp-zorrosvg
3. https://github.com/gribnoysup/jpng.svg

Why
===

1. It is dead simple in Python
2. I needed a PNG palette for a mask


