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.

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.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transpeg-1.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file transpeg-1.0.2.tar.gz.

File metadata

  • Download URL: transpeg-1.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for transpeg-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d8822fb71bf5387822616604a4efd59d99111eb6e382df1f52726964801dd95c
MD5 3ec2e0fba9af10801556e90fe252acc8
BLAKE2b-256 8b0da05181312d74fad2857ba2bc7739d21014a13d4a21d2e4429e8e45da5afe

See more details on using hashes here.

File details

Details for the file transpeg-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: transpeg-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for transpeg-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5bcda78beeb444a02e616f7f576d15c6f975c25abaa0f3b99e1cfe59d1bc6acd
MD5 cbce0019b9985691e41f382a895660ee
BLAKE2b-256 039e6910626666ca3f95b183cc424b552ea8c4fe5ea0c3ce821458072774d848

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page