Title: Color dominante
Author: Liam Gladdy
Published: <strong>21 de Julio de  2015</strong>
Last modified: 16 de Abril de  2024

---

Buscar plugins

![](https://ps.w.org/dominant-color/assets/banner-772x250.png?rev=1360704)

Este plugin **no ha sido probado con ninguna las 3 últimas versiones principales
de WordPress**. Puede que ya no se mantenga o no tenga soporte, y puede que tenga
problemas de compatibilidad cuando se utiliza con versiones más recientes de WordPress.

![](https://ps.w.org/dominant-color/assets/icon.svg?rev=1360664)

# Color dominante

 Por [Liam Gladdy](https://profiles.wordpress.org/lgladdy/)

[Descargar](https://downloads.wordpress.org/plugin/dominant-color.2.2.0.zip)

 * [Detalles](https://cl.wordpress.org/plugins/dominant-color/#description)
 * [Reseñas](https://cl.wordpress.org/plugins/dominant-color/#reviews)
 *  [Instalación](https://cl.wordpress.org/plugins/dominant-color/#installation)
 * [Desarrollo](https://cl.wordpress.org/plugins/dominant-color/#developers)

 [Soporte](https://wordpress.org/support/plugin/dominant-color/)

## Descripción

Un plugin de WordPress para guardar automáticamente el color dominante y una paleta
de colores de una imagen de archivo adjunto a post_meta.

## Capturas de pantalla

 * [[
 * Se muestra el uso del plugin en hellobrstl.com
 * [[
 * Se muestra el uso del plugin en hellobrstl.com
 * [[
 * Se muestra el uso del plugin en hellobrstl.com

## Instalación

El color dominante y la paleta de colores es guardad automáticamente al subir la
imagen y al editar la meta información de una entrada.

Necesitas utilizar get_post_meta para recuperar la clave de meta “dominant_color_hex”
o “dominant_color_rgb”. Hex devuelve una cadena, incluyendo el #, rgb devuelve un
array con la clave 0 como rojo, 1 verde y 2 como azul.

Como alternativa, puede utilizar las claves de meta “color_palette_rgb” y “color_palette_hex”
para obtener una matriz de los 8 colores más destacados en la imagen.

## Reseñas

![](https://secure.gravatar.com/avatar/41184eff6911930093f029452b1874d6a6a5913c38334076d340dbdd6d2d2491?
s=60&d=retro&r=g)

### 󠀁[10 Stars!](https://wordpress.org/support/topic/10-stars-28/)󠁿

 [willwenzel](https://profiles.wordpress.org/willwenzel/) 15 de Abril de 2024 2 
respuestas

This plugin is perfect in its simplicity. Developers thought of everything, and 
it makes pages with images look beautiful. PLUS, if you don’t like the color they
pick to be dominant, you can choose another color from the image. So well thought
out. I just wish Wordpress wouldn’t bug me saying it hasn’t been tested with the
last 3 releases. It works perfectly, and probably will regardless of updates. Here’s
how I use it in a theme in case anyone reading this is struggling. if (has_post_thumbnail()){
$featured_image_id=get_post_thumbnail_id( );}$imageColor = get_color_data($featured_image_id,‘
dominant_color_hex’, ‘true’);$colorPaletteArray = get_post_meta ($featured_image_id,‘
color_palette_hex’, ‘true’);$complimentaryColor1 = $colorPaletteArray[0];$complimentaryColor2
= $colorPaletteArray[1];$complimentaryColor3 = $colorPaletteArray[2];$complimentaryColor4
= $colorPaletteArray[3]; And then I just assign $imageColor, and it’s 4 complimentary
colors, to the relevant divs in the template. Genius plugin, and thank you for creating
it.

![](https://secure.gravatar.com/avatar/eb360eed29632f622518f9fc8d09e6f441d19df4ac8f021fea37c05477f35a3f?
s=60&d=retro&r=g)

### 󠀁[Nice plugin](https://wordpress.org/support/topic/nice-plugin-3353/)󠁿

 [Ngo Quang Dao](https://profiles.wordpress.org/asksock/) 29 de Octubre de 2019

Useful plugin, please add function to bulk edit all images on gallery 🥰

![](https://secure.gravatar.com/avatar/14ce6e1762dc140b66df3188970e853dc59c81a6d13cf373ab9a4ab89227b2c0?
s=60&d=retro&r=g)

### 󠀁[Works well & doesn’t inject any front-end rubbish](https://wordpress.org/support/topic/works-well-doesnt-inject-any-front-end-rubbish/)󠁿

 [Justin Moreland](https://profiles.wordpress.org/justin-moreland/) 12 de Diciembre
de 2018

I like this and how it does what it says. I like also that it doesn’t enqueue any
scripts or CSS into the page. Great for custom theme development. Also seems to 
work well in Wordpress 5.0 (newest at the time of this review).

![](https://secure.gravatar.com/avatar/943ed00c394e6a367c03ad0f1eba6fb5df30794b341327248b12a0d48d452373?
s=60&d=retro&r=g)

### 󠀁[Did exactly what I needed](https://wordpress.org/support/topic/did-exactly-what-i-needed-13/)󠁿

 [isteiner](https://profiles.wordpress.org/isteiner/) 3 de Septiembre de 2016

Pulls out both the dominant color and a nice color palette. Far more efficient to
do this calculation once on upload rather than via PHP or JavaScript when rendering
the page. Perfect!

![](https://secure.gravatar.com/avatar/c2a8e17d7bb01e281e3364c82443ac4183ab99f165ca2289f688da196f71ce61?
s=60&d=retro&r=g)

### 󠀁[Does what it says on the tin](https://wordpress.org/support/topic/does-what-it-says-on-the-tin-161/)󠁿

 [Sii Cockerill](https://profiles.wordpress.org/designtwelve/) 3 de Septiembre de
2016

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. A bulk calculate feature
would be excellent – along with a way of colour picking the override from the posts
screen in the WP Dashboard. Otherwise, perfect for what I need 🙂

 [ Leer los 5 comentarios ](https://wordpress.org/support/plugin/dominant-color/reviews/)

## Colaboradores & Desarrolladores

“Color dominante” es software de código abierto. Las siguientes personas han contribuido
a este plugin.

Colaboradores

 *   [ Liam Gladdy ](https://profiles.wordpress.org/lgladdy/)

“Color dominante” ha sido traducido en 3 idiomas. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/dominant-color/contributors)
por sus contribuciones.

[Traduce “Color dominante” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/dominant-color)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/dominant-color/), 
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/dominant-color/),
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/dominant-color/)
por [RSS](https://plugins.trac.wordpress.org/log/dominant-color/?limit=100&mode=stop_on_copy&format=rss).

## Historial de cambios

2.2.0

Modernise javascript for deprecated jQuery handlers
 Update to latest version of
[PHP Color Thief](https://github.com/ksubileau/color-thief-php) Bump version requirements
to match color thief and a modern-ish WordPress (5.4+)

2.1.0

Soporte para Idiomas traducidos (Envía tu traducción a translate.wordpress.org!)

2.0.1

Se solucionó un bug que podía causar un error de javascript cuando cargabas nuestro
JS en el footer.

2.0

Se añadió un selector de color a la pantalla de edición de accesorio para reemplazar
el color dominante con un selector personalizado.
 La galería de medios de WordPress
ahora te permite sobreescribir el color dominante, el cual será devuelto en lugar
de dominant_color_hex/rgb cuando esté configurado. También te dejaré a generar una
paleta para imágenes subidas antes de que instalases el plugin.

1.0

Construcción inicial

## Meta

 *  Versión **2.2.0**
 *  Última actualización **hace 2 años**
 *  Instalaciones activas **300+**
 *  Versión de WordPress ** 5.4 o superior **
 *  Probado hasta **6.5.8**
 *  Versión de PHP ** 7.2 o superior **
 *  Idiomas
 * [English (UK)](https://en-gb.wordpress.org/plugins/dominant-color/), [English (US)](https://wordpress.org/plugins/dominant-color/),
   [German](https://de.wordpress.org/plugins/dominant-color/), y [Spanish (Chile)](https://cl.wordpress.org/plugins/dominant-color/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/dominant-color)
 * Etiquetas
 * [color](https://cl.wordpress.org/plugins/tags/color/)[colour](https://cl.wordpress.org/plugins/tags/colour/)
   [image](https://cl.wordpress.org/plugins/tags/image/)
 *  [Vista Avanzada](https://cl.wordpress.org/plugins/dominant-color/advanced/)

## Calificaciones

 4.8 de 5 estrellas.

 *  [  4 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/dominant-color/reviews/?filter=5)
 *  [  1 valoración de 4 estrellas     ](https://wordpress.org/support/plugin/dominant-color/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/dominant-color/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/dominant-color/reviews/?filter=2)
 *  [  0 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/dominant-color/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dominant-color/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/dominant-color/reviews/)

## Colaboradores

 *   [ Liam Gladdy ](https://profiles.wordpress.org/lgladdy/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/dominant-color/)