/dominant-color

Save the dominant color of the image files you upload in Wordpress.

Primary LanguagePHP

Dominant Color

WordPress plugin to save the dominant color of the image file you upload.

Also adds a metabox with a colorpicker in your Media library.

Installation

  1. Upload the plugin in your wp-content/plugins directory
  2. Activate it on the plugin administration page

Usage

Call the post meta (an hexadecimal code) in your template:

By attachment ID

show_dominant($attachmentID)

By post ID

show_dominant_by_post_id($postID)