Home > python > Extracting Colors

Extracting Colors

At http://99designs.com/tech-blog/blog/2012/05/11/color-analysis/ I found an interesting project called “colorific”. “colorific determines what the most important colors used in your image are, and if one of them is a background color.” So it won’t list all the colors, just the most important ones.



sudo pip install colorific

Let’s take the following image: ares.png.

Usage #1:

$ colorific ares.png 
ares.png        #0065b9,#bbd6ec,#ff0000,#2d4456,#77adda

Usage #2:

$ colorific -o ares.png 
ares.png        #0065b9,#bbd6ec,#ff0000,#2d4456,#77adda

This one, in addition to usage #1, creates a file called “ares_palette.png”, which shows the extracted colors:


  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: