Skip to content

DADMIN1/RGBifier

Repository files navigation

RBGifier

your image (lame) RGBified!!
"your image" "RGBified"
your jaguar (ferocious) RGBified!!
"your image" "RGBified"
your GIF (boring) RGBified!!
"your image" "RGBified"

Usage

run 'main.py', providing the path to an image, and (optionally) an output directory
output will be written into the same directory as the original image by default.

python3 main.py --help
usage: python3 main.py IMAGE [OUTPUT-DIRECTORY]
[--noclean] [--nowrite] [--print-only] [--parse-only]
[--magick {IM,GM}] [--tmpfs] [--mkdir] [--mkdir-parent]
[--relative-img | --relative-cwd | --relative-tmp]
[--crop {[W]x[H][%]}[+X][+Y]]
[--gravity {center,north,south,east,west,northeast,northwest,southeast,southwest}]
[--scale {int[%]|float[x]}] [--scales {int[%]|float[x]} [{int[%]|float[x]} ...]]
[--remap {W,B,WB,BW}] [--alpha AA] [--white RRGGBB[AA]] [--black RRGGBB[AA]]
[--edge [RRGGBB[AA]]] [--edge-radius int] [--fuzz int[%] int[%]] [--threshold int[%] int[%]]
[--stepsize (float)] [--stepedge (float)] [--stepwhite  (float)] [--stepblack (float)]
[--format fmt [fmt ...]] [--tempformat {MPC,MIFF}]
[--framecap (int)] [--duration (int)]

On startup, the script looks for 'main_config.json' under the 'configs_RGBifier' directory.
you can set default command-line options and environment values there.
run 'Config.py' to create or reset config files. See the example config for keys/values

Prerequisites

requires ImageMagick and/or GraphicsMagick (select with '--magick' arg)
WebP output requires ImageMagick
MP4 input/output and APNG output require ffmpeg

About

Generates color-cycling animations from any image, GIF, or video!

Topics

Resources

Stars

Watchers

Forks