A tiny python script to extract color palettes from any image.
Original script available in rebelot/kanagawa.nvim.
$ python palette.py --help
usage: palette.py [-h] [-n N] [-r R] [-o] img out
positional arguments:
img
out
optional arguments:
-h, --help show this help message and exit
-n N The number of colors for the palette
-r R Rescale factor
-o