<dl>
<dt><b>Command:</b> <dd>Indexed
<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 split a layer into separate layers based upon its original colors. The original layer is not affected, instead a new layer group containing the generated layers will be created.

If the original image is in Indexed Mode then the number of layers created will be equal to the number of colors in the original layer's palette(/colormap). If the original is in RGB or Grayscale Mode then the number of layers created will be the number of unique colors in the original, up to a maximum of 256 colors. It is typically advisable my [sg-quantize|Quantize script] be used to reduce the number of colors in an RGB image before running this script.

Note: this script requires GIMP 2.8 or later.

The following graphic shows the layerstack of the result of running the script on an 8-color rendering of the image on the right (image courtesy of user Nachbarnebenan of the The GIMP forums]):

<center><img />
</center>

</dl>