News for hackers. Stuff that matters.
Re:A simple palette application that is written in Tornado a... by binarymax on Wednesday April 10, 2013 @05:52AM (#5524160)
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 a... by dhotson on Wednesday April 10, 2013 @07:37AM (#5524468)
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 a... by gokmen on Wednesday April 10, 2013 @02:08PM (#5526898)
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 a... by dhotson on Wednesday April 10, 2013 @04:28PM (#5527922)
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. :)
Re:A simple palette application that is written in Tornado a... by gokmen on Wednesday April 10, 2013 @05:45PM (#5528424)
I started to use colorific for palette. it's good, and i think to support also your project. thanks again.
Re:A simple palette application that is written in Tornado a... by eyko on Wednesday April 10, 2013 @05:38AM (#5524107)
I 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 a... by gokmen on Wednesday April 10, 2013 @06:51AM (#5524324)
sorry, it's my carelessness. I fixed the description of github repository.
Re:A simple palette application that is written in Tornado a... by minikomi on Wednesday April 10, 2013 @04:37AM (#5523895)
What is it?
Re:A simple palette application that is written in Tornado a... by Styck on Wednesday April 10, 2013 @04:41AM (#5523907)
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.
Re:A simple palette application that is written in Tornado a... by gokmen on Wednesday April 10, 2013 @04:51AM (#5523945)
Yes you're right. I wrote it to create color palette for company logo. It's useful for designers or theme creators.