PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Hassane Moussa   PHP Detect Image Background Color   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Detect Image Background Color
Detect the dominant color used in an image
Author: By
Last change:
Date: 4 years ago
Size: 520 bytes
 

Contents

Class file image Download
<?php
 error_reporting
(0);
/***************************************************************************************
                            Main Using Class DetectImageColor
***************************************************************************************/
 
require('detectImageColor.php');
 
 
$path = "images3.png";

   
$mainDetectImageColor = new DetectImageColor($path);

   
//echo $mainDetectImageColor->getColorBackground($mainDetectImageColor->getHexa($path))."<br/>";
       
   
var_dump($mainDetectImageColor);
  
?>