This module automatically populates a color field with the dominant color extracted from an associated image field. This can be configured on any entity type that has both a color field and an image field.
Automatically fill a color_field field with the dominant image field from the same entity.
For a full description of the module, visit the project page.
Submit bug reports and feature suggestions, or track changes in the issue queue.
Table of contents
- Requirements
- Installation
- Configuration
- Maintainers
- Supporting organizations
Requirements
The color_field module needs to be installed.
Installation
Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.
Configuration
Add a color_field type field to any entity which already have an image field.
During field configuration enable the "Color_field from image" behavior and select the relevant image field.
Next time an entity is saved the color_field will be updated with the dominant color from the image file.
Maintainers
- Olivier Pierre - opi
Thank to Phil Wolstenholme for his work on color_thief module as a great inspiration source.
Supporting organizations
Developpement paid by Superchi Architectes and DeuxPointDeux design studio.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Color ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta4 | Pre-release | 10–11 | Drupal 12 | Jun 18, 2026 | |
| 1.0.0-beta3 | Pre-release | 10–11 | Nov 12, 2024 | ||
| 1.0.0-beta2 | Pre-release | 10–11 | Nov 12, 2024 | ||
| 1.0.0-beta1 | Pre-release | 10–11 | Nov 10, 2024 | ||
| 1.0.x-dev | Dev | 10–11 | first dev release | Nov 10, 2024 |