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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: transpeg-1.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for transpeg-1.0.3.tar.gz
Algorithm Hash digest
SHA256 088f03d50dd3f10eaf4ddba5709c5b174d58c35c8b586ebab9fa0d0d2ffcda6d
MD5 1edea0ec8ba578041f592d46c168f31b
BLAKE2b-256 f3e5a90b027aa0d9f7ef786a8741beede185c17e72d8e1e2b1f89d5495db80f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: transpeg-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for transpeg-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c3ce7f9b9ea90707706f89a4c9b1c186c8bce4c1d400793399a3582ea5d1ec74
MD5 c4a8fa20b3911b272fdc1fe5210bf620
BLAKE2b-256 9d7b6b05fbc0c3f82202effdac6244e951014cf941a4d5abf8e25ce00696403e

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