olafapl / kirby-color-thief
Plugin for Kirby 3 for extracting dominant colors from images
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:kirby-plugin
pkg:composer/olafapl/kirby-color-thief
Requires
This package is auto-updated.
Last update: 2025-10-18 07:31: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