Palette Quantize

Quantizes an image to an input or extracted palette

intermediate
Since P00

Input Ports

Image

Image input for Palette Quantize.

Image
Palette

Extracts a palette from the image when no palette is connected

Palette

Output Ports

Image

Image output from Palette Quantize.

Image
Palette

Palette actually used

Palette
Count

Number of colors in the palette used

Int

Parameters

NameTypeDefaultDescription
Extract ModeEnum`Representative`Controls how to extract a palette when no palette is connected
Max ColorsInt`16`Maximum number of colors to keep when extracting
Include TransparentBool`false`Includes fully transparent pixels when extracting the palette
Preserve AlphaBool`true`Preserves the original image alpha when changing colors

Overview

Quantizes an image to an input or extracted palette

Inputs and Outputs

Input Ports

  • Image Image: Image input for Palette Quantize.
  • Palette Palette: Extracts a palette from the image when no palette is connected

Output Ports

  • Image Image: Image output from Palette Quantize.
  • Palette Palette: Palette actually used
  • Count Int: Number of colors in the palette used

Key Parameters

NameTypeDefaultDescription
Extract ModeEnum`Representative`Controls how to extract a palette when no palette is connected
Max ColorsInt`16`Maximum number of colors to keep when extracting
Include TransparentBool`false`Includes fully transparent pixels when extracting the palette
Preserve AlphaBool`true`Preserves the original image alpha when changing colors

When to Use

Use Palette Quantize when you need this operation to remain explicit, reusable, and easy to tune inside a PixPipeline node graph.

Notes

Connect compatible data types and preview the result while tuning this node. Parameter names and port names follow the PixPipeline UI.