Descrizione
A WordPress plugin to automatically save the dominant color and a color palette for an attachment image into post_meta.
Screenshot
Installazione
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.
Recensioni
Contributi e sviluppo
“Dominant Color” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
Collaboratori“Dominant Color” è stato tradotto in 3 lingue. Grazie ai traduttori per i loro contributi.
Traduci “Dominant Color” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.
Changelog
2.2.0
Modernise javascript for deprecated jQuery handlers
Update to latest version of PHP Color Thief
Bump version requirements to match color thief and a modern-ish WordPress (5.4+)
2.1.0
Support translated languages (Submit your translation at translate.wordpress.org!)
2.0.1
Fix a bug where loading our JS in the footer would cause a javascript error.
2.0
Add a colour picker to the attachment edit screen to override the dominant color with a custom pick.
The WordPress media gallery will now let you pick a dominant color override which will be returned in place of dominant_color_hex/rgb when set.
It’ll also let you generate a palette for legacy images uploaded before you installed the plugin.
1.0
Initial Build