Palette From Image
Automatically extracts the dominant colors from any image, turning a reference photo into a usable palette.
Palette From Image has two modes.
- Cluster uses k-means to find the most prominent colors (up to 64). They are averages, so they may not appear in the source literally.
- Exact returns the source’s actual distinct colors (up to 256), for a sprite, tileset, or reference palette image whose palette must match exactly.
If the source has more distinct colors than the cap, the extras are dropped in Sort By order and the node says so. Fully transparent pixels are ignored in both modes.
Wire the output into Palette Remap to generate variants in a reference image’s colors, such as a brand guide screenshot or a photo.
Exporting the Palette
Section titled “Exporting the Palette”Export Palette saves the extracted colors as a .gpl, .ase, or .pal file, the same formats the Palette node exports, for reuse in GIMP, Krita, Aseprite, and other tools. It stays disabled until the node has produced a palette.
Parameters
Section titled “Parameters”Pins
Palette
Number of colors to extract.
- Cluster: up to 64; a higher value is treated as 64.
- Exact: the most colors returned, up to 256. Extra colors are dropped in Sort By order and the node reports it.
How many times the clustering restarts; the best result is kept. Higher = better colors but slower. Cluster mode only
How colors are extracted from the source image.
Fully transparent pixels are ignored.
Output
How to order the output palette colors
Usage Tips
Section titled “Usage Tips”- Switch to Exact for pixel art: the palette comes back with the sprite’s real colors, ready for Palette Remap or the Pixel Art node.
- In Cluster mode, raise Attempts if the extracted colors miss an important accent; the best of several k-means runs is kept.