Skip to content

theamnesic/dominant-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published