didder icon indicating copy to clipboard operation
didder copied to clipboard

Auto-pick colours from image for use in the palette

Open Shrinks99 opened this issue 3 years ago • 1 comments

Would be cool to auto-choose x number of colours from the input image using colour quantization as defined by a single integer set as the --palette value. For example --palette 5 would choose the 5 best colours from the source image and dither accordingly.

Additionally, don't limit users to a minimum of 2 values! By allowing people to select a single average colour the application now has a bonus feature of spitting out average coloured images. It's not a bug, it's a feature!

Shrinks99 avatar Apr 30 '21 02:04 Shrinks99

Other ways of doing this:

--palette mmcq --palette num 4
--palette mmcq:5

These methods allow the color quantization algorithm to be chosen, in case more are added in the future.

https://github.com/joshdk/quantize can be used for this.

makew0rld avatar May 01 '21 04:05 makew0rld