WP Manifestindependent plugin directory
manifest / content / acf-color-thief

Advanced Custom Fields: Color Thief

Grabs the dominant color or a representative color palette from an image. Uses javascript and canvas.

★ 4stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/ttillberg/acf-color-thief/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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

  1. Copy the acf-color-thief folder into your wp-content/plugins folder
  2. Activate the Color Thief plugin via the plugins admin page
  3. Create a new field via ACF and select the Color Thief type
  4. Configure the field by specifying the name of the sibling field (must be an image field)

Changelog

Please see readme.txt for changelog