Markus Hedlund

Php: Get colors from an image

2009-06-23

After having been fascinated lately by what Google kan achieve with images, my inspiration has yet been awakened! For a long time I've enjoyed experimenting programmatically with images, to see what's possible. Facial recognition is one of the areas that fascinate me. But that's for another day.

What I am about to show you is just an early test, to see if this actual can work. It's a PHP script that selects some colors from an image. These colors should represent the coloring of the image. This can have some more or less practical applications, though I am not going to lock you mind on my ideas.

As you will see, this is a rather unpolished lab project, and no time has been invested on designing the page. My goal is to publish this as an Open Source project later. For now you can try it at labs.mimmin.com/php_colors!

Comments

Mike lyn 29 Oct 09
Hey, can you give me the source of this code? I really need it, i have searched on google, but couldn't find a code like this.

Mike lyn

- Thanks, please answear!
Me 29 Oct 09
Well, sure. Send me a mail, and I will send you the code. My contact info is in the footer below.

What are you going to use it for? :-)

Post a comment

Is required but won't be published
© . Created with Mimmin Clarity.