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.

Metadata

Release files for background-mask 0.2.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for background-mask 0.2.post1
File Size Uploaded Provenance Actions
background_mask-0.2.post1.tar.gz 2.0 kB Without provenance Details for background_mask-0.2.post1.tar.gz

Release files / background_mask-0.2.post1.tar.gz

Download URL background_mask-0.2.post1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1582f1b40095260fcf9d2ad5dcbc05eb573b205abe2e33d6468e6f08a6345570
BLAKE2b-256 checksum
How to use checksums
30f20f2e2fb49b2ddf373c53e47d3f0a64556a5184cb7eea948525724f115552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.3

Security for background-mask 0.2.post1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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