A simple palette application that is written in Tornado and Pillow
1–10 of 11 posts
Re: A simple palette application that is written in Tornado and Pillow
#2Re: A simple palette application that is written in Tornado and Pillow
#3What is it?
Re: A simple palette application that is written in Tornado and Pillow
#4Re: A simple palette application that is written in Tornado and Pillow
#5Re: A simple palette application that is written in Tornado and Pillow
#6Have 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
#7I would have understood the title if it had just said written in Python. Most of the time I don't really care what libraries are used.
Re: A simple palette application that is written in Tornado and Pillow
#8We 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
#9I 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...
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
#10I 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.