News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Mikko Koppanen's Blog:
Color analysis
November 05, 2007 @ 10:26:00

In the latest entry to his blog, Mikko Koppanen shows how to take the power of Imagick and harness it to check and see what sorts of colors an image contains:

The code in the example reduces the image colors to 10, then discards all but one pixel of every color and then creates the palettes out of those colors. This might not be the most accurate way to do this, but at least it's fast.

His code makes three different "palettes" from the image - average, dark and light - and outputs them as a range of colored boxes for each all of the three palettes. Examples of the output are also included in the post.

0 comments voice your opinion now!
imagick color palette average dark light tutorial imagick color palette average dark light tutorial



Similar Posts

HowToForge: How To Install a Complete LEMP on Ubuntu/Debian

DevShed: Developing a Captcha Application with an Image Generator Class with PHP 5

PHPBuilder.com: Securing Data Sent Via GET Requests

Tobias Schlitt's Blog: A Two-day Look at PHPWeekender

DevShed: Graphical Interfaces and Unit Testing


Community Events







Don't see your event here?
Let us know!


framework example book PEAR PHP5 mysql release releases code ajax database developer application security zendframework cakephp zend package conference job

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework