Skip to content

sotormd/nordify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nordify

Recolor images using the Nord palette & more.

Consequence of a slight infatuation with the glorious Nord palette.

Features

  • Palette based coloring.
  • Supports .PNG images.
  • Uses CIELAB color distance instead of raw RGB distance for better perceptual accuracy.
  • Choose from several available palettes.
  • Uses goroutines for better performance.
  • Implement Floyd-Steinberg dithering.
  • Support more image formats.

Showcase

Original Nordified
Original Recolored
Original Recolored
Original Recolored
Original Recolored

Requirements

This app is packaged using Nix.

Usage

Run with Nix

nix run github:sotormd/nordify -- input.png output.png

Build with Go

  1. Clone the repository

    git clone https://github.com/sotormd/nordify
    cd nordify
  2. Build and run

    go build ./cmd/nordify
    ./nordify input.png output.png

Palettes

Palettes are JSON arrays of hex color codes

The following are included by default:

  • nord
  • gruvbox
  • catppuccin-mocha
  • everforest
  • dracula
  • tokyo-night
  • rose-pine
  • solarized-dark
  • monokai

The palette to use can be specified with the -p flag.

nix run github:sotormd/nordify -- -p everforest input.png output.png

The default palette is nord.

Using your own palettes

By default, nordify looks for palettes in $HOME/.config/nordify/palettes/.

You can pass your own directory with the -d flag.

nix run github:sotormd/nordify -- -d /path/to/my/palettes input.png output.png

If this directory doesn't exist, nordify will create it and populate it with the default palettes.

About

Recolor images using the Nord palette & more.

Topics

Resources

License

Stars

Watchers

Forks