title: Color palette percentages colorthief
body: <p>I am working on fetching dominant colors in a jpg image using colorthief by generating a color palette.
  I have done that successfully by downloading <a href="https://github.com/fengsp/color-thief-py" rel="nofollow">colorthief.py</a> and running on python 2.7. I am generating a palette of 10 colors by using the function:</p>
  
  <pre><code>get_palette(color_count=10, quality=10)
  </code></pre>
  
  <p>Now, I want to find out the percentage breakup of the 10 colors present in the palette to find how dominant the most dominant color is.</p>
  
  <p>I understand that this uses modified median cut algo where medians are used to cut the sorted colors and then the average of pixel RGB values is taken.</p>
  
  <p>I tried to edit the code at some places, but I am not sure where exactly to edit the code in colorthief.py.</p>