Save the dominant color of the image files you upload in Wordpress.
PHP JavaScript
Latest commit 56ba0fe Jul 2, 2014 @theamnesic Add return options
Permalink
Failed to load latest commit information.
.gitignore
README.md
dominant-color.php
script.js

README.md

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)