Generic colour
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
About
Generic Colour is a Drupal 7 module using the Colors-Of-Image library
It monitors the image uploads and calculates the most popular generic colours. These are made available as HEX values to be referenced in views or programatically.
'Color of Image differes from many palette extracters as it works off a white list color palette.'
Installation
Download all files and install them like any Drupal module. For more info, visit this link Installing Modules and Themes
Usage
Allow roles to configure the module: visit the permissions page and enable Configure Generic Colour.
Turn on the monitorig by visiting the admin/config/generic_colour page.
The module creates a new content type called Generic colours. New nodes will be added to this content type when a valid image has been uploaded and analyzed.
Testing the functionality - Upload an image anywhere on the site (except for the theme) and check for new nodes added under Content. These can be referenced in views or programatically.
Thanks to
https://github.com/humanmade/Colors-Of-Image - for the library that analyzes the images.
@TODO
- [x] Add permissions
- [x] Add dependencies
- [ ] Comment the code
- [x] Refactor the code
- [x] Process existing images
- [x] Make fid field an actual file reference filed so we can use it in views
- [ ] Coding standards?
