All Projects → kiddae → ImageColorizer

kiddae / ImageColorizer

Licence: MIT license
Make any wallpaper fit any terminal colorscheme.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ImageColorizer

One Gnome Terminal
Atom's One Dark and One Light theme for GNOME Terminal
Stars: ✭ 256 (+220%)
Mutual labels:  palette, colorscheme
Nord
An arctic, north-bluish color palette.
Stars: ✭ 4,816 (+5920%)
Mutual labels:  palette, colorscheme
Rose Pine Theme
All natural pine, faux fur and a bit of soho vibes for the classy minimalist
Stars: ✭ 143 (+78.75%)
Mutual labels:  palette, colorscheme
zathuraconf
Change zathura colour schemes
Stars: ✭ 42 (-47.5%)
Mutual labels:  colorscheme
sabuni
Light Colorscheme for IntelliJ IDEA
Stars: ✭ 14 (-82.5%)
Mutual labels:  colorscheme
mocp-themes
My collection of themes for the music on console player
Stars: ✭ 48 (-40%)
Mutual labels:  colorscheme
turpenscape
Turpenscape allows designers to create Inkscape (and Gimp!) palettes from an image or an URL
Stars: ✭ 13 (-83.75%)
Mutual labels:  palette
Palette
Android application to get the #hexcode and rgb() values for any image
Stars: ✭ 31 (-61.25%)
Mutual labels:  palette
gameofthrones
🎨 Game of Thrones inspired palette for R
Stars: ✭ 69 (-13.75%)
Mutual labels:  palette
color-thief-react
🎨 A React component with hooks for Color Thief. Grab color palette from an image with javascript
Stars: ✭ 29 (-63.75%)
Mutual labels:  palette
glsl-cos-palette
glsl function for making cosine palettes
Stars: ✭ 26 (-67.5%)
Mutual labels:  palette
SimpleFox
🦊 A Userstyle theme for Firefox minimalist and Keyboard centered.
Stars: ✭ 1,403 (+1653.75%)
Mutual labels:  unixporn
blue-sky
A clean and blue BSPWM setup
Stars: ✭ 267 (+233.75%)
Mutual labels:  unixporn
angr.vim
A pleasant, mild, dark (n)vim theme.
Stars: ✭ 53 (-33.75%)
Mutual labels:  colorscheme
colorgrab
A cross-platform color picker
Stars: ✭ 80 (+0%)
Mutual labels:  palette
dvdts
Terminal screensaver similar to dvd bouncing logo; Uses the distro/OS name/custom text instead
Stars: ✭ 34 (-57.5%)
Mutual labels:  unixporn
poulette
Proof of concept for a color mixer interface
Stars: ✭ 182 (+127.5%)
Mutual labels:  palette
dotfiles-nix
Configuration files for my NixOS machine, declared by home-manager
Stars: ✭ 137 (+71.25%)
Mutual labels:  unixporn
daily
7 Beautiful and famous dark themes with Operator mono font superpowers
Stars: ✭ 34 (-57.5%)
Mutual labels:  colorscheme
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+10%)
Mutual labels:  palette

Image

ImageColorizer is a Python module and a CLI tool that you can easily use to colorize wallpapers for them to fit a terminal colorscheme.

It currently supports importing colorschemes from the currently set Xresources variables, pywal and colorer (my colorscheme management engine).

📓 How it works

The module uses two different algorithms:

  • pixel by pixel (default): goes through each pixel and replaces it with the right color from the colorscheme
  • average box: calculates the average color of each pixel before processing. This one gives smoother and better results in some cases.
Average Pixel by pixel
Average Original

Usage

usage: ImageColorizer [-h] [-x] [-c COLORSCHEME] [-w] [-p COLOR [COLOR ...]] [-s]
                      [-b] [--average BOX_SIZE] [--no_quantize]
                      input output

positional arguments:
  input                 File to generate image from.
  output                File to generate image to.

optional arguments:
  -h, --help            show this help message and exit
  -x, --xresources      Get palette from Xresources.
  -c COLORSCHEME, --colorer COLORSCHEME
                        Get palette from colorer.
  -w, --pywal
                        Gets palette from pywal.
  -p COLOR [COLOR ...], --palette COLOR [COLOR ...]
                        Manually set colors.
  -s, --show            Show image using xdg-open when image is generated.
  -b, --blur            Blur the image
  --average BOX_SIZE    Use average algorithm (calculate the average color of
                        each pixel with the pixels around) to generate the
                        wallpaper, and set the size of the box to calculate
                        the color from
  --no_quantize         Do not quantize the image before processing (may make
                        the image look better)

Examples

ImageColorizer a.jpg output.jpg -x # Generate the wallpaper from colors of the currently used ~/.Xresources or ~/.Xdefaults file
ImageColorizer a.jpg output.jpg -c ~/Configuration/colorschemes/nord # Generate the wallpaper using colorscheme nord from colorer
ImageColorizer a.jpg output.jpg -c ~/Configuration/colorschemes/nord --average 2 # Use average algorithm with box size of 2
ImageColorizer a.jpg output.jpg -c ~/Configuration/colorschemes/nord --average 2 -s # Show image at the end
ImageColorizer a.jpg output.jpg -p "#3b4252" "#bf616a" "#a3be8c" -s # Use these colors.

💻 Installation

Clone the repo and run ./install.sh (or pip3 install .)

✔️ Todo

  • Multi-threading
  • More colorscheme importing options

Troubleshoot

Any common fixes to any errors will be added here.

👍 Credits

Heavily inspired by ImageGoNord.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].