sylvainjule / kirby-colorextractor

Extract dominant / average color from any image. Kirby 3 and 4.
39 stars 7 forks source link

Make extractColor a file method #12

Closed moritzebeling closed 3 years ago

moritzebeling commented 3 years ago

Previously, the color extraction process was started either from hooks or from the api route. I propose to centralize this and create a file method to do the job:

$file->extractColor() : Kirby\Cms\Field
moritzebeling commented 3 years ago

This would allow to trigger it from outside the plugin

sylvainjule commented 3 years ago

Looking great! Thanks :)