title: Build a color palette from image URL
body: <p>I am trying to create an API which takes an image URL as input and returns back a color palette in JSON format as output.</p>
  
  <p>It should work something like this: <a href="http://lokeshdhakar.com/projects/color-thief/" rel="nofollow">http://lokeshdhakar.com/projects/color-thief/</a></p>
  
  <p>But should be in Python. I have looked into PIL (Python Image Library) but didn't get what I want. Can someone point me in the right direction?</p>
  
  <pre><code>Input: Image URL
  Output: List of Colors as a palette
  </code></pre>