Skip to content

Recusively replaces alpha transparency with solid fill for all transparent images in a directory

Notifications You must be signed in to change notification settings

zeantsoi/remove-transparency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Remove PNG Transparency

(Or, more accurately, replace it with a solid fill color)

This is a Python script that recursively crawls through the directories located in the same directory as the script. It checks each image file for alpha transparency – when an alpha transparent image is found, the image is overlaid on top a solid white background and re-saved.

Perfect for use cases where transparency needs to be replaced wholesale as a batch.

Usage

Place this script in the directory you want to crawl, then run it:

python remove-transparency.py

Dependencies

PIL

About

Recusively replaces alpha transparency with solid fill for all transparent images in a directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages