Skip to main content

Transparent JPEG emulation via SVG

Project description

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

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

transpeg-1.0.3.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

transpeg-1.0.3-py3-none-any.whl (4.4 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