News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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


blog comments powered by Disqus

Similar Posts

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 3: Composite View Pattern

Joshua Thijssen: Dynamic form modification in Symfony2

Evert Pot's Blog: Storing encrypted session information in a cookie

DevShed: Developing a Form Validation System with the Observer Pattern in PHP

PHPBuilder.com: Testing with the Zend Framework: How to Get Started


Community Events

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


community install interview php7 opinion api laravel5 release version xdebug unittest extension example introduction language voicesoftheelephpant series podcast framework laravel

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