All Projects → humanmade → Colors Of Image

humanmade / Colors Of Image

A PHP Library for getting colors from images DEPRECATED

Projects that are alternatives of or similar to Colors Of Image

silan
audio file [silence] analyzer
Stars: ✭ 33 (-87.91%)
Mutual labels:  unmaintained
vinz-clortho
INACTIVE - http://mzl.la/ghe-archive - BrowserID Keymaster for LDAP enabled Identity Providers
Stars: ✭ 16 (-94.14%)
Mutual labels:  unmaintained
web-forward
DEPRECATED - Innovation acceleration program from Mozilla Labs
Stars: ✭ 17 (-93.77%)
Mutual labels:  unmaintained
build-relengapi
INACTIVE - http://mzl.la/ghe-archive - Your Interface to Release Engineering Automation -
Stars: ✭ 14 (-94.87%)
Mutual labels:  unmaintained
cleverbot
Deprecated/unmaintained. See https://www.cleverbot.com/api/
Stars: ✭ 23 (-91.58%)
Mutual labels:  unmaintained
rilproxy
DEPRECATED
Stars: ✭ 21 (-92.31%)
Mutual labels:  unmaintained
ignite
OBSOLETE: use Void Linux
Stars: ✭ 69 (-74.73%)
Mutual labels:  unmaintained
coma
a console mail user agent | obsolete: use mblaze
Stars: ✭ 13 (-95.24%)
Mutual labels:  unmaintained
2015-foia-hub
A consolidated FOIA request hub.
Stars: ✭ 47 (-82.78%)
Mutual labels:  unmaintained
addon-sdk-content-scripts
DEPRECATED | Use WebExtensions instead | Add-ons demonstrating how to use content scripts in the Add-on SDK.
Stars: ✭ 23 (-91.58%)
Mutual labels:  unmaintained
icongrid
INACTIVE - http://mzl.la/ghe-archive - IconGrid.js makes it easy to display a scrollable grid of icons!
Stars: ✭ 25 (-90.84%)
Mutual labels:  unmaintained
page-metadata-service
DEPRECATED - A RESTful service that returns the metadata about a given URL.
Stars: ✭ 18 (-93.41%)
Mutual labels:  unmaintained
id-specs
INACTIVE - http://mzl.la/ghe-archive - Specifications for Mozilla's Identity Effort
Stars: ✭ 91 (-66.67%)
Mutual labels:  unmaintained
soup
INACTIVE - http://mzl.la/ghe-archive - OpenWebApps on Android
Stars: ✭ 12 (-95.6%)
Mutual labels:  unmaintained
rescuefox
DEPRECATED - demo game to drive 3D engine creation: rescue your pet space fox!
Stars: ✭ 35 (-87.18%)
Mutual labels:  unmaintained
gw2-api.com
Proxy-layer server for the official GuildWars 2 API.
Stars: ✭ 12 (-95.6%)
Mutual labels:  unmaintained
jade-babel
Jade plugin for Babel
Stars: ✭ 39 (-85.71%)
Mutual labels:  unmaintained
confidential-survey
A Rails app for conducting confidential surveys without violating user privacy
Stars: ✭ 29 (-89.38%)
Mutual labels:  unmaintained
elmo
DEPRECATED - Elmo ~ https://mozilla.github.io/elmo/
Stars: ✭ 32 (-88.28%)
Mutual labels:  unmaintained
Garmr
INACTIVE - Security Testing Tool
Stars: ✭ 105 (-61.54%)
Mutual labels:  unmaintained

Colors-Of-Image

This project is no longer supported, please refer to the fork at https://github.com/brianmcdo/ImagePalette

Color of Image is used to extract a color palette from a given image. Aside from being a native PHP implementation, Color of Image differes from many palette extracters as it works off a white list color palette. Below is the default palette:

The main advanage of working from a color palette is closer matching, as each pixel simply has to calculate the color-distance within the palatte and chose the best match. This is useful for working with color taxonomies as the taxonomy should have a finate amount of colors.

See an example of this in action here: http://www.rufflr.com/search/?color=ffcc33

Usage


// initiate with image
$image = new ColorsOfImage( 'https://www.google.co.uk/images/srpr/logo3w.png' );

// get the prominent colors
$colors = $image->getProminentColors(); // array( '#FFFDD', ... )

And there we go!

Options


Precision

By default, ColorsOfImage will process every 10th pixel. This is for performance reasons, you can change this like below. The precision is a performance-to-time desicion.

$image = new ColorsOfImage( $src, 5 /* precision */ );

Color Count

To control the amount colors returned set the third parameter.

$image = new ColorsOfImage( $src, 5, 3 /* number of colors to return */ );

Contribution guidelines

see https://github.com/humanmade/Colors-Of-Image/blob/master/CONTRIBUTING.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].