aqlx86 / image-color-uri
Creates a data-uri based on the image dominant color.
dev-master
2016-12-10 18:58 UTC
This package is auto-updated.
Last update: 2024-10-29 05:28:16 UTC
README
Creates a data-uri based on the image dominant color.
Requirements
ImageMagick extension should be present.
Usage
require './vendor/autoload.php';
$image_url = 'https://www.elephantnaturepark.org/wp-content/uploads/2016/06/Lek_20may2016_01_n.jpg';
$i = new ImageColor\ImageColor($image_url);
echo $i->get_data_uri();