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

Uploaded Source

File details

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

File metadata

  • Download URL: background_mask-0.1.tar.gz
  • Upload date:
  • Size: 1.9 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.1.tar.gz
Algorithm Hash digest
SHA256 69535de2b5d14fca3471aa1612cb9d9549d6a86adbb62e0677efbe4000cd386b
MD5 0b0b070d8e88bc6e8fee3fb007d622c9
BLAKE2b-256 6ef33ba7ba0f249c5d850cfbf6535f8ca3d3a0faff26524725cfc73b17621918

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.post1

1 file

0.2

1 file

This release

0.1 This release

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