9 ms·
A simple palette application that is written in Tornado and Pillow
- minikomi 13y agoWhat is it?
- eyko 13y agoI 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.
- gokmen 13y agosorry, it's my carelessness. I fixed the description of github repository.
- binarymax 13y agoI 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.
- dhotson 13y agoI helped write a library called colorific to detect a colour palette given an image. You might find it interesting. https://github.com/99designs/colorific https://github.com/99designs/colorific We blogged a bit about how it works too: http://99designs.com/tech-blog/blog/2012/05/11/color-analysis/ http://99designs.com/tech-blog/blog/2012/05/11/color-analysi...
- gokmen 13y agoHello, 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.