Skip to content

Automatically make animated GIF backgrounds transparent with Python+ImageMagick

Notifications You must be signed in to change notification settings

craymichael/auto-transparent-gif-backgrounds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Usage

$ ./make-gif-transparent.py -h
usage: make-gif-transparent.py [-h] input_filename [output_filename]

Automatically make GIF backgrounds transparent.

positional arguments:
  input_filename   Path to the GIF
  output_filename  Path to the output GIF (default: <input-basename>-transparent.gif)

optional arguments:
  -h, --help       show this help message and exit
  --threshold THRESHOLD, -t THRESHOLD
                        The threshold for all RGB channels to determine which pixels belong to the background

Installation

You just need to have ImageMagick installed (convert command) and the Python packages installed listed in requirements.txt.

pip install -r requirements.txt

About

Automatically make animated GIF backgrounds transparent with Python+ImageMagick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages