hfg/imagecolor

This package is abandoned and no longer maintained. No replacement package was suggested.

Extracts the dominant color of an image into a color field.

Installs: 51

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 1

Type:craft-plugin

pkg:composer/hfg/imagecolor

1.3.2 2022-03-03 14:07 UTC

README

Select an image in the asset field and automatically get the image's dominant color in a color field.

Requirements

This plugin requires Craft CMS 3.3.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require hfg/imagecolor
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for imagecolor.

Usage

{{ fieldName.asset.getUrl() }}
{{ fieldName.color }}
{{ fieldName.brightness }}