Nodes/comfyui-fvmtools/Palette From Image
ComfyUI Node

Palette From Image

Extracts a color palette from an image using K-Means clustering. Modes: dominant — sort by pixel count (most common colors) vibrant — sort by saturation (most vivid colors) fashion_aware — greedy max-hue-distance selection Outputs individual color names, semantic role outputs, a palette preview swatch, and an annotated source image.

By ping1979ping·Created 5 months ago·Updated 2 months ago· 0
Palette From Image
  • image
  • palette_string
  • color_1
  • color_2
  • color_3
  • color_4
  • color_5
  • color_6
  • color_7
  • color_8
  • primary
  • secondary
  • accent
  • neutral
  • metallic
  • palette_preview
  • source_annotated
  • palette_info
num_colors5
extraction_mode
ignore_backgroundtrue
ignore_skintrue
sample_region
saturation_threshold0.10
include_neutralstrue
include_metallicstrue
seed0
CategoryFVM Tools/Color

Inputs (10)

NameTypeDefaultDescription
imageIMAGE
num_colorsINT52–8
extraction_modeCOMBO3 options: dominant, vibrant, fashion_aware
ignore_backgroundBOOLEANtrue
ignore_skinBOOLEANtrue
sample_regionCOMBO4 options: full, center_crop, upper_half, lower_half
saturation_thresholdFLOAT0.100–1
include_neutralsBOOLEANtrue
include_metallicsBOOLEANtrue
seedINT00–4294967295

Outputs (17)

NameTypeDescription
palette_stringSTRING
color_1STRING
color_2STRING
color_3STRING
color_4STRING
color_5STRING
color_6STRING
color_7STRING
color_8STRING
primarySTRING
secondarySTRING
accentSTRING
neutralSTRING
metallicSTRING
palette_previewIMAGE
source_annotatedIMAGE
palette_infoSTRING