Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 492 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 492 Bytes

PHP Image to Color Palette

A quick PHP class to generate a color palette based on an image or a set of images. This is based on Sameer Borate's GetCommonColors.

Testing

Open index.php in your browser on a server.

Example

require_once("ColorPalette.php");
$localPalette = ColorPalette::GenerateFromLocalImage("MuppetsOfSesameStreet.jpg");
print_r($localPalette);