olafapl / kirby-color-thief
Plugin for Kirby 3 for extracting dominant colors from images
v3.0.0
2019-11-17 01:53 UTC
Requires
This package is auto-updated.
Last update: 2025-03-18 06:16:33 UTC
README
A simple plugin for extracting dominant colors from images in Kirby 3.
Requirements
See Color Thief PHP requirements.
Installation
Composer
composer require olafapl/kirby-color-thief
Usage
The extracted colors are stored in the image metadata (in "#rrggbb" format) and can be accesed with:
<?= $myImageFile->colors()->yaml() ?> // Returns an array of colors