Skip to main content

make white part of a picture transparent

Project description

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.

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

background_mask-0.2.post1.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

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