Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Black and white colors extraction using --min-saturation=0 #20

Open
tiredenzo opened this issue Jun 17, 2014 · 3 comments
Open

Black and white colors extraction using --min-saturation=0 #20

tiredenzo opened this issue Jun 17, 2014 · 3 comments

Comments

@tiredenzo
Copy link

Hello there :)
Thank you for your work !
I am having a hard time extracting white and black colors using --min-saturation=0
Any help would be appreciated !

@deronsizemore
Copy link

I'm having the same problem with blacks. I'm using this in a django application and it seems to extract white okay, but ignores black and I'd like to include black in the colors that are extracted. I'm using it like this:

extracted_palette = palette.extract_colors(image, max_colors=10, min_saturation=0)

min_saturation doesn't appear to have an effect on anything at all with how I'm using it. If you've figured out an answer I'd love to hear it.

EDIT: tested it once more with a different image. Whites seem to be hit or miss. Sometimes it will include white, other times it won't.

@deronsizemore
Copy link

Well I seem to have stumbled on a fix for my issue. min_saturation: 0 wasn't doing anything for me. I just guessed once and set min_saturation: None and now it seems to be giving me white and black values along with the rest of the colors it finds.

@larsyencken
Copy link
Contributor

Ideally, setting --min-saturation=0 should get rid of the saturation filter. The fact that it doesn't is a bug. Glad you found a workaround for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants