Nodes/color_gel_pixel/Color Gel Save
ComfyUI Node

Color Gel Save

A ComfyUI node in Color Gel Pixel/Core with 25 inputs and 3 outputs.

By cadric·Created 10 months ago·Updated 10 months ago· 0
Color Gel Save
  • image
  • image
  • file
  • files_json
filenameimage
save_aswebp
losslessfalse
compression90
reduce_palettefalse
reduce_palette_max_colors32
save_opacitytrue
flatten_bg_color#FFFFFF
resize_w0
resize_h0
resamplelanczos
sharpenfalse
sharpen_amount1.00
sharpen_radius1.00
sharpen_threshold0
use_names_for_filenamesfalse
names_packed
overwritefalse
optimize_pngtrue
drop_metadatatrue
reduce_palette_dithernone
reduce_palette_methodmediancut
posterize_bits0
palette_lock_across_batchfalse
CategoryColor Gel Pixel/Core

Inputs (25)

NameTypeDefaultDescription
imageIMAGEInput image (RGB/RGBA).
filenameSTRINGimageBase filename without extension.
save_asCOMBOwebpOutput format.
losslessBOOLEANfalseLossless WebP (ignored for PNG).
compressionINT901–100WebP quality 1-100; PNG compression mapped 0-9.
reduce_paletteBOOLEANfalseReduce colors via quantization.
reduce_palette_max_colorsINT321–256Max colors after palette reduction.
save_opacityBOOLEANtrueKeep alpha channel; if False flattens on background color.
flatten_bg_colorSTRING#FFFFFFBackground color when save_opacity is False (hex or r,g,b).
resize_wINT00–16384Resize width; 0 keeps original.
resize_hINT00–16384Resize height; 0 keeps original.
resampleoptCOMBOlanczosResize filter; 'pixel' does block-averaging to a fixed grid.
sharpenoptBOOLEANfalseApply unsharp mask after resize.
sharpen_amountoptFLOAT1.000–5Sharpen strength (mapped to 0-500%).
sharpen_radiusoptFLOAT1.000–10Unsharp mask radius (pixels).
sharpen_thresholdoptINT00–255Unsharp threshold (edge sensitivity).
use_names_for_filenamesoptBOOLEANfalseUse provided names as filenames for batches.
names_packedoptSTRINGOptional newline-separated names (one per image) used when saving a batch.
overwriteoptBOOLEANfalseOverwrite existing files instead of suffixing (name(2), …).
optimize_pngoptBOOLEANtrueUse PNG optimizer (may be slower).
drop_metadataoptBOOLEANtrueStrip embedded metadata (EXIF/ICC) when possible.
reduce_palette_ditheroptCOMBOnoneDither for palette reduction (fs/none).
reduce_palette_methodoptCOMBOmediancutPalette selection algorithm.
posterize_bitsoptINT00–8Posterize RGB to N bits before palette reduction (0 disables).
palette_lock_across_batchoptBOOLEANfalseDerive palette from first image and reuse for all in the batch.

Outputs (3)

NameTypeDescription
imageIMAGE
fileSTRING
files_jsonSTRING