Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Convert the transparent background of a PNG image to opaque while image to transparent

License

Notifications You must be signed in to change notification settings

LuciferLordKing/Simple-PNG-Transparent-Background-To-Image-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple-PNG-Transparent-Background-To-Image-Converter

Convert the transparent background of a PNG image to opaque while image to transparent


prerequisite

  • Python3
  • pip
    • python3 -m ensurepip --default-pip
  • Pillow
    • python3 -m pip install Pillow

usage: png-background-to-img.py [-h] [-i INPUT_FILENAME]
                                [-a BACKGROUND_OPACITY] [-o OUTPUT_FILENAME]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT_FILENAME, --input-filename INPUT_FILENAME
                        The Full Input Filename (Must Be *png)
  -a BACKGROUND_OPACITY, --background-opacity BACKGROUND_OPACITY
                        The alpha value a of the background pixels where 0 ≤ a
                        ≤ 255 (Default: 255)
  -o OUTPUT_FILENAME, --output-filename OUTPUT_FILENAME
                        The Full Output Filename (Default: shadow-art.png)

About

Convert the transparent background of a PNG image to opaque while image to transparent

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages