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.2.0.tar.gz (4.7 kB view hashes)

Uploaded source

Built Distribution

transpeg-1.2.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page