Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-pick colours from image for use in the palette #2

Open
Shrinks99 opened this issue Apr 30, 2021 · 1 comment
Open

Auto-pick colours from image for use in the palette #2

Shrinks99 opened this issue Apr 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Shrinks99
Copy link
Contributor

Shrinks99 commented Apr 30, 2021

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!

@makew0rld makew0rld added the enhancement New feature or request label May 1, 2021
@makew0rld
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants