A WordPress plugin to automatically save the dominant color and a color palette for an attachment image into post_meta.
(If the link does not work)↓
https://wordpress.org/plugins/dominant-color/
The dominant color and color palette is automatically saved on upload and edit to post meta.
You need to then use get_post_meta to retrieve the “dominant_color_hex” or “dominant_color_rgb” meta key. hex returns a string, including the #, rgb returns an 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 an array of 8 colors that feature prominently in the image.
If any errors or problems with the plug-in then write comments.
Recently I came across a site where you can buy cheap domains. (more…)
If an error occurred when installing the site on Joomla or moving the site -…
Identified - Our upstream provider has confirmed this is a facility-level network issue. We will provide…
Today I'll show you how to center text in Gimp. It's very simple. Believe me.…
For many years on the Internet there has been a game called Roblox. You can…
Of the 130 most famous artists, most of all are Taurus, who have a good…