PHP Classes
Icontem

Class: Color extract


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Csongor Zalatnai  >  Color extract  >  Download  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Color extract Support forum
Base name: colorextract
Description: Extracts the most common colors used in images
Related top rated classes:
Version: -
Required PHP version: -
License: BSD License
All time users: 1497 users
All time rank: 1722
Week users: 10 users
Week rank: 733
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Trackback   Applications   Related links   Files Files  

Author

Picture of Csongor Zalatnai
Name: Csongor Zalatnai <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: Hungary Hungary - PHP jobs in Hungary
Home page: ???
Age: 19
All time rank: 1145
Week rank: 686

Innovation Award

PHP Programming Innovation award nominee
September 2006
Number 10
An image may be made of dots of many colors. Finding which colors are most frequently used in an image, is relatively easy. It is a matter of building an histogram.

However, if you want to find which are the dominant tones, that is much harder, as the most frequently used colors may not be exactly the dominant tones.

This class provides a solution for finding the topmost dominant tones used in an image, using only PHP code without any special PHP extensions, except for the GD library functions.

That may be useful to use background colors on a page that match the dominant tones used in images presented in that page.

Manuel Lemos

Groups

Group folder image Graphics Colors, images, charts and picture formats View top rated classes

Detailed description

This class can be used to extract the most common colors used in images.

It can open an image file in the GIF, JPEG or PNG format. Then it traverses the image and returns an array with the most used color tones.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Perfect (100.0%)
Perfect (100.0%)
-
Good (87.5%)
-
-
Sufficient (68.8%)
195
Month:
Not yet rated by the users

Trackback links

Link Description
Color for Developers Color is important for developers as well as designers, below you’ll find a collection of tools and libraries that make it easier for you work with color in your code...
happy 2008 The 408 photos posted in 2007. And these are the colours most used in the photos posted in 2007. (thanks to a PHP script by Csongor Zalatnai)...
Links for 2007-10-09 can open an image file in the GIF, JPEG or PNG format. Then it traverses the image and returns an array with the most used color tones...
Projects: Color to Name Ok, so I was coding some stuff for naranai and I was thinking to myself that it’d be cool if I could automatically detect a few dominant colors in a picture and use it to make them searchable...

Applications that use this class

Link Description
http://www.pixelfoto.hu Pixelfoto stock photography
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
http://www.pixelfoto.hu/color/ You can test the class here

Files

File Role Description
Plain text file colors.inc.php Class The main class
Plain text file example.php Example Example script
Image file test.jpg Photo Test image no. 1
Image file test2.jpg Photo Test image no. 2
Download all files: colorextract.tar.gz colorextract.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products