Live data from Hacker News

A simple palette application that is written in Tornado and Pillow

github.com

1–10 of 11 posts

Re: A simple palette application that is written in Tornado and Pillow

#4
post #3
post #2

What is it?

Seems like you post a picture to it and it returns the colour palette used. Seems pretty useful if you're into that kind of thing.

Yes you're right. I wrote it to create color palette for company logo. It's useful for designers or theme creators.

Re: A simple palette application that is written in Tornado and Pillow

#6
I wrote something similar in javascript a couple years ago and have some suggestions:

Have a look at the WCAG contrast ratio and luminance functions to gauge similarities/differences between colors. If you are looking to extract a theme those formulas are gold!

What sort of hashing/tolerance are you using for grouping? Using the above you can specify a tolerance level, and use sqrt((r1-r2)^2 + (g1-g2)^2 + (b1-b2)^2) to get a diff and then compare that with the tolerance.

Re: A simple palette application that is written in Tornado and Pillow

#8
I helped write a library called colorific to detect a colour palette given an image. You might find it interesting. https://github.com/99designs/colorific

We blogged a bit about how it works too: http://99designs.com/tech-blog/blog/2012/05/11/color-analysi...

Re: A simple palette application that is written in Tornado and Pillow

#9
post #8

I helped write a library called colorific to detect a colour palette given an image. You might find it interesting. https://github.com/99designs/colorific We blogged a bit about how it works too: http://99designs.com/tech-blog/blog/2012/05/11/color-analysi...

Hello, thank you for your sharing. It's awesome library and I think to use colorific in my project. we don't need to reinvent the wheel.

But it seems to need improvement to support Pillow, latest version of Python2, etc. I still didn't try but I'll examine it. Thanks.

Re: A simple palette application that is written in Tornado and Pillow

#10
post #9
post #8

I helped write a library called colorific to detect a colour palette given an image. You might find it interesting. https://github.com/99designs/colorific We blogged a bit about how it works too: http://99designs.com/tech-blog/blog/2012/05/11/color-analysi...

Hello, thank you for your sharing. It's awesome library and I think to use colorific in my project. we don't need to reinvent the wheel. But it seems to need improvement to support Pillow, latest version of Python2, etc. I still didn't try but I'll examine it. Thanks.

Yeah, we built it to work well on logos and vector artwork, but it might not work so well for photographs. Anyway, see what you think. :)
Post reply on HN