This module allows nodes and other entities to be automatically tagged with taxonomy terms based on the colors in an image on an image field in that entity.
For example, nodes can be automatically tagged with terms like “Blue” or “Green” if the image in the node’s image field predominately has those colors. More abstract tagging is also possible. All nodes with a red image could be tagged with ‘love’. Or all nodes with a blue image could be tagged ‘Drupal’. You just need to add terms to the taxonomy vocabulary and add the colors in the hexadecimal field.
How does it work?
The Color Tagger module creates a new widget for Taxonomy Term Reference fields. Using this widget (instead of the standard autocomplete or checkbox widgets) allows you to specify an image field on the same entity from which to scan for colors. You also need a field on the taxonomy where you can enter a hexadecimal value for each term (such as #FFFFFF for white). When the entity is saved, Color Tagger processes the image and matches the values from the image’s pixels to the colors in the taxonomy.
Features
- Configurable settings for max number of colors to automatically tag.
- Colors can be set as ignored so that they will not be tagged
- Can try to identify the background color per image and ignore it (works best with pictures that have a solid background like product photos)
- Comes with an example module that creates a Picture content type and a pre-populated vocabulary of Colors.
- Compatible with the Color Field module.
Requirements
- PHP 5.3+ with GD Library
Project information
- Project categories: E-commerce
- Created by matthewmessmer on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.

