Extract dominant / average color from any image. Kirby 3 only.
Compatibility with Kirby 4
Compatibility with Kirby 3.9 & PHP 8.X
->toColor()
method for ->dominantColor()
and ->averageColor()
methods, to prevent a conflict with kirby-colors
colorextractor
field in favor of a kirby-janitor job'average' => true | false
option with 'mode' => 'dominant | average | both'
(see 3.1. Extraction mode)Make extractColor a file method, thanks to @moritzebeling
Compatibility with 3.4+, thanks to @CrisGraphics
Bugfix.
Fix button's behavior.
The plugin now follows the Pluginkit guidelines.
Pre-release until K3 is launched.