<dl>
<dt><b>Command:</b>
<dt><b>Menu:</b>
<dt><b>PDB Name:</b>
<dt><b>Download:</b> (after the page appears, click on the "Download"
<dt><b>License:</b>

<dt><b>Description:</b> <dd>This script will reduce the active layer to the specified number of colors (also works on layer masks and channels). An option is available for the amount of smoothing applied to the edges between colors (default is none). There is also a "Rounded?" option which produces a slightly different distribution of the colors, typically one more abstract. The final option, "Use selection as smoothing mask", will protect the selected region from smoothing; however, the entire layer is converted to the reduced color scheme. Finally, a "polygonal" option is available that attempts to straighten the edges between colors (dramatically affected by the amount of smoothing).

<center><img />
</center>

With no smoothing (the default setting), the effect on the layer is identical to converting to Indexed mode with the specified number of colors; however, this script has the advantage of not affecting other layers in the image.

NOTE: The polygonal option can cause the script to run very slowly, especially with low values of smoothing.

Starting with the following image, courtesy of user Nachbarnebenan of the The GIMP forums]:

<center><img />
</center>

The default values will produce the following result (note that this is equivalent result to converting to Indexed Mode with 16 colors):

<center><img />
</center>

And with a smoothing value of "3":
<center><img />
</center>

And with the "Use selection as smoothing mask" option. Note how the selection around the hair protects it from smoothing, yet it is still converted to the limited color scheme.
<center><img />
</center>

And finally, here is the result of using the polygonal option (and with a smoothing of "3").

<center><img />
</center>


</dl>