Skip to main content

background_mask

Utility for adding alpha channel for white background region of a picture.

How to use

Make sure you install Pillow first. Then type python background_mask.py [--threshold 240] input_image_file_name and you get the generated image named with ..._mask.png.

Situtation for usage

When you download an image from Internet, the alpha channel does not exist. Use this utility script can make the whilte region of the picture transparent.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

background_mask-0.2.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file background_mask-0.2.tar.gz.

File metadata

  • Download URL: background_mask-0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for background_mask-0.2.tar.gz
Algorithm Hash digest
SHA256 98112beaf29ecd1892d0d2782189047e35dc178a21c911ad45316657fef9ac0d
MD5 01e52c06a0ede2d883ccdede826ee4cf
BLAKE2b-256 6737f3a7978324dabebea6edfb67e9b436ab52a9f9d00a2af962f82be06e9019

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.post1

1 file

This release

0.2 This release

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page