Skip to content

Palettize ​

The Palettize node takes as input an image and a color palette and outputs a representation of the input image using only colors from that palette.

The palette should be a 1 x N image, where N is the number of colors of the palette.

Inputs and Outputs ​

Inputs:

  • Image (Image): The input image.
  • Palette Image (Image): The image that defines the color palette to be used. For a palette of N colors, this should be an image of width N and height 1, where each pixel defines one color of the palette.
  • Perceptual (Bool): The input image.

Outputs:

  • Output (Image): The output image.

Example ​

Here we use the Withering 24 color palette by @surrealember to palettize an image. You can use any palette from lospec by downloading the PNG Image (1x) version of the palette and importing the downloaded image into ImageFlow.