Skip to content

Python script that takes an image and turns it into a color changing GIF.

Notifications You must be signed in to change notification settings

ganttArt/color-shift-gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Shift GIF

Built with Python 3.11

Python script that takes an image and turns it into a color changing GIF.

Example

big sur color shifted

Setup

git clone https://github.com/ganttArt/color-shift-gif.git
cd color-shift-gif
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
deactivate

Built with Python 3.11

Run

. venv/bin/activate
python main.py -f <image-filename>

Optional Command Line Arguments

  • -h --help: Show info for command line arguments
  • -f <filename> --file <filename>: File name for image to apply effect to.
    • Include relative path if file is not in root directory.
  • -d <seconds> --duration <seconds>: Duration of gif in seconds. Default is 10 seconds.
  • -dm <seconds> --delaymotion <seconds>: Delay motion in the gif by _ seconds (show first frame)
  • -nl --noloop: Create a GIF that doesn't loop
  • -t --transparent: Maintain transparency of input image in GIF.
    • Note: Semi-transparent pixels will convert to fully transparent pixels. GIF image format does not support semi-transparent pixels
  • -p --posterize: Create posterize effect in GIF (experimental effect, works poorly for some images)
    • posterized example

About

Python script that takes an image and turns it into a color changing GIF.

Resources

Stars

Watchers

Forks

Languages