Advanced Custom Fields: Color Thief
Grabs the dominant color or a representative color palette from an image. Uses javascript and canvas.
by Christoph Jeworutzki, Theo Tillberg · github.com/ttillberg/acf-color-thief · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ttillberg/acf-color-thief/archive/refs/heads/master.zipReadme
ACF Color Thief Field
Extracts and creates a colour palette from an uploaded image.
Description
Configure the field by specifying the name of an adjacent image field from which the palette should be extracted. The colour palette will update whenever the image changes. If no colour has previously been chosen, the first one from the palette gets selected by default.
Compatibility
This ACF field type is compatible with:
- ACF 5
Installation
Automatic (Recommended)
To keep your plugin up to date, install the GitHub updater plugin and follow the instructions to install this repo.
Manual
- Copy the
acf-color-thieffolder into yourwp-content/pluginsfolder - Activate the Color Thief plugin via the plugins admin page
- Create a new field via ACF and select the Color Thief type
- Configure the field by specifying the name of the sibling field (must be an image field)
Changelog
Please see readme.txt for changelog