Title: WebKew Image Dominant Color Generator
Author: Peshmerge Morad
Published: <strong>29 août 2024</strong>
Last modified: 29 août 2024

---

Recherche d’extensions

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

Cette extension **n’a pas été testée avec les3 dernières versions majeures de WordPress**.
Elle pourrait ne plus être maintenue ou supportée et peut présenter des erreurs 
de compatibilité quand elle est utilisée avec des versions récentes de WordPress.

![](https://ps.w.org/webkew-image-dominant-color-generator/assets/icon-256x256.png?
rev=3143955)

# WebKew Image Dominant Color Generator

 Par [Peshmerge Morad](https://profiles.wordpress.org/peshmerge/)

[Télécharger](https://downloads.wordpress.org/plugin/webkew-image-dominant-color-generator.1.0.0.zip)

 * [Détails](https://fr-ca.wordpress.org/plugins/webkew-image-dominant-color-generator/#description)
 * [Avis](https://fr-ca.wordpress.org/plugins/webkew-image-dominant-color-generator/#reviews)
 *  [Installation](https://fr-ca.wordpress.org/plugins/webkew-image-dominant-color-generator/#installation)
 * [Développement](https://fr-ca.wordpress.org/plugins/webkew-image-dominant-color-generator/#developers)

 [Support](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/)

## Description

A WordPress plugin that automatically generates a colors palette (6 colors) for 
any uploaded image to the WordPress media
 library. In addition, to the colors palette,
it generates a dominant color which can be overridden by color from the generated
colors palette. All generated colors are hexadecimal values.

This plugin provides a shortcode [webkew_dc field_name= » » override_field= » »]
which can returns a dominant color of any specific image specified using the shortcode
parameters.
 One use-case of this shortcode is the following: You are a web agency,
and you want to create webpage for every client’s project you have built. You want
to give each page a background color that’s based on the color of the client’s brand/
logo or any specific color you specify. Instead of assigning the colors manually,
this plugin will generate the dominant color automatically for you and the shortcode
will provide you with that color. The shortcode gives you also some flexibility 
by using parameters when using the shortcode: 1. field_name: this could be the name
of image custom field or the string « featured » to select the featured image of
the post/page/custom post type. The dominant color of the image specified here will
be returned as a hexadecimal value. 2. override_field: ignore the dominant color
provided by the previous field and use the name of another custom field in post/
page/custom post type. The color specified in this field will be returned as a hexadecimal
value.

If the image specified in `field_name` doesn’t have a dominant color, and the `override_field`
is empty, the shortcode will return the value of the fallback color which can be
set in the WordPress admin panel under Settings –> General section.

## Captures d’écran

[⌊Dominant color and colors palette generated for an uploaded image in the WordPress
media library.⌉⌊Dominant color and colors palette generated for an uploaded image
in the WordPress media library.⌉[

Dominant color and colors palette generated for an uploaded image in the WordPress
media library.

[⌊The shortcode [webkew_dc field_name=featured] being used to return the dominant
color of the featured image of a post.⌉⌊The shortcode [webkew_dc field_name=featured]
being used to return the dominant color of the featured image of a post.⌉[

The shortcode `[webkew_dc field_name=featured]` being used to return the dominant
color of the featured image of a post.

[⌊On the front-end, the shortcode returns the dominant color of that featured image.⌉⌊
On the front-end, the shortcode returns the dominant color of that featured image
.⌉[

On the front-end, the shortcode returns the dominant color of that featured image.

[⌊Overriding the dominant color by another color from a custom field (color_picker
in our case) by specifying its name override_field=color_picker⌉⌊Overriding the 
dominant color by another color from a custom field (color_picker in our case) by
specifying its name override_field=color_picker⌉[

Overriding the dominant color by another color from a custom field (color_picker
in our case) by specifying its name override_field=color_picker

[⌊On the front-end, the shortcode ignores field_name and returns the color value
specified using override_field.⌉⌊On the front-end, the shortcode ignores field_name
and returns the color value specified using override_field.⌉[

On the front-end, the shortcode ignores field_name and returns the color value specified
using override_field.

[⌊Returning the dominant color of an image custom field (my_image in our case) by
specifying its name in the shortcode field_name=my_image⌉⌊Returning the dominant
color of an image custom field (my_image in our case) by specifying its name in 
the shortcode field_name=my_image⌉[

Returning the dominant color of an image custom field (my_image in our case) by 
specifying its name in the shortcode field_name=my_image

[⌊On the front-end, the shortcode returns the dominant color of that image custom
field.⌉⌊On the front-end, the shortcode returns the dominant color of that image
custom field.⌉[

On the front-end, the shortcode returns the dominant color of that image custom 
field.

[⌊Specifying a fallback color for the plugin. This will be used if no other option
is available.⌉⌊Specifying a fallback color for the plugin. This will be used if 
no other option is available.⌉[

Specifying a fallback color for the plugin. This will be used if no other option
is available.

[⌊Using the shortcode without any parameters, will result in returning the fallback
color.⌉⌊Using the shortcode without any parameters, will result in returning the
fallback color.⌉[

Using the shortcode without any parameters, will result in returning the fallback
color.

[⌊On the front-end, the fallback color is returned.⌉⌊On the front-end, the fallback
color is returned.⌉[

On the front-end, the fallback color is returned.

[⌊Specifying a different dominant color from the colors palette.⌉⌊Specifying a different
dominant color from the colors palette.⌉[

Specifying a different dominant color from the colors palette.

## Installation

Install the plugin and start using it!

## Avis

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

### 󠀁[Overlooked plugin – SO GREAT](https://wordpress.org/support/topic/overlooked-plugin-so-great/)󠁿

 [Ace](https://profiles.wordpress.org/h4hagency/) 17 novembre 2025 1 reply

So simple – so effective. Does what it says. Absolutely amazing. Thank you so so
much!

 [ Lire l’avis ](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/reviews/)

## Contributeurs & développeurs

« WebKew Image Dominant Color Generator » est un logiciel libre. Les personnes suivantes
ont contribué à cette extension.

Contributeurs

 *   [ Peshmerge Morad ](https://profiles.wordpress.org/peshmerge/)

[Traduisez « WebKew Image Dominant Color Generator » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/webkew-image-dominant-color-generator)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/webkew-image-dominant-color-generator/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/webkew-image-dominant-color-generator/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/webkew-image-dominant-color-generator/)
par [RSS](https://plugins.trac.wordpress.org/log/webkew-image-dominant-color-generator/?limit=100&mode=stop_on_copy&format=rss).

## Historique des changements

#### 1.0.0

 * Plugin released.

## Méta

 *  Version **1.0.0**
 *  Last updated **il y a 2 années**
 *  Active installations **10+**
 *  WordPress version ** 5.5 ou plus **
 *  Tested up to **6.6.10**
 *  PHP version ** 7.4 ou plus **
 *  Language
 * [English (US)](https://wordpress.org/plugins/webkew-image-dominant-color-generator/)
 * Tags
 * [color](https://fr-ca.wordpress.org/plugins/tags/color/)[custom field](https://fr-ca.wordpress.org/plugins/tags/custom-field/)
   [dominant color](https://fr-ca.wordpress.org/plugins/tags/dominant-color/)[image](https://fr-ca.wordpress.org/plugins/tags/image/)
 *  [Vue avancée](https://fr-ca.wordpress.org/plugins/webkew-image-dominant-color-generator/advanced/)

## Notes

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/reviews/)

## Contributeurs

 *   [ Peshmerge Morad ](https://profiles.wordpress.org/peshmerge/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/webkew-image-dominant-color-generator/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://buymeacoffee.com/peshmerge)