Skip to content

Adds a file and color field which gets populated by an image's dominant color.

License

Notifications You must be signed in to change notification settings

hfg-gmuend/hfg-imagecolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image + Color

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 }}

About

Adds a file and color field which gets populated by an image's dominant color.

Resources

License

Stars

Watchers

Forks

Packages

No packages published