WordPress plugin to save the color and palette for image into post meta...
You need to then use get post meta to retrieve the dominant color hex or dominant color rgb meta key hex returns string, including the #, rgb returns array with key 0 as red, 1 as green, and 2 as blue..
Alternatively, you can use the meta keys color palette rgb and color palette hex to get array of 8 colors that feature in the image...
Far more efficient to do this calculation once on upload rather than via PHP or JavaScript when rendering the page.
I had to search the post meta table to find out how the 'dominant override meta key it would have been useful to find that in the release notes..
bulk calculate feature would be excellent along with way of colour picking the override from the posts screen in WP Dashboard..
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Fix bug where loading our JS in the footer would cause javascript error. 2.0.
Add picker to the attachment edit screen to override the color with custom pick..
The WordPress gallery will now let you pick color override which will be returned in place of dominant color hex rgb when set..
Read more