PHP code example of zunyunkeji / image-color
1. Go to this page and download the library: Download zunyunkeji/image-color library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zunyunkeji / image-color example snippets
use zunyunkeji\imageColor\Image;
$img = new Image();
$img->load(__DIR__ . '/logo.jpg');
$info = $img->primaryColors();
print_r($info);