olafapl/kirby-color-thief

Plugin for Kirby 3 for extracting dominant colors from images

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:kirby-plugin

v3.0.0 2019-11-17 01:53 UTC

This package is auto-updated.

Last update: 2024-05-18 04:30:38 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