ComfyUI Node
Color Gel Save
A ComfyUI node in Color Gel Pixel/Core with 25 inputs and 3 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image (RGB/RGBA). | |
| filename | STRING | image | Base filename without extension. |
| save_as | COMBO | webp | Output format. |
| lossless | BOOLEAN | false | Lossless WebP (ignored for PNG). |
| compression | INT | 901–100 | WebP quality 1-100; PNG compression mapped 0-9. |
| reduce_palette | BOOLEAN | false | Reduce colors via quantization. |
| reduce_palette_max_colors | INT | 321–256 | Max colors after palette reduction. |
| save_opacity | BOOLEAN | true | Keep alpha channel; if False flattens on background color. |
| flatten_bg_color | STRING | #FFFFFF | Background color when save_opacity is False (hex or r,g,b). |
| resize_w | INT | 00–16384 | Resize width; 0 keeps original. |
| resize_h | INT | 00–16384 | Resize height; 0 keeps original. |
| resampleopt | COMBO | lanczos | Resize filter; 'pixel' does block-averaging to a fixed grid. |
| sharpenopt | BOOLEAN | false | Apply unsharp mask after resize. |
| sharpen_amountopt | FLOAT | 1.000–5 | Sharpen strength (mapped to 0-500%). |
| sharpen_radiusopt | FLOAT | 1.000–10 | Unsharp mask radius (pixels). |
| sharpen_thresholdopt | INT | 00–255 | Unsharp threshold (edge sensitivity). |
| use_names_for_filenamesopt | BOOLEAN | false | Use provided names as filenames for batches. |
| names_packedopt | STRING | Optional newline-separated names (one per image) used when saving a batch. | |
| overwriteopt | BOOLEAN | false | Overwrite existing files instead of suffixing (name(2), …). |
| optimize_pngopt | BOOLEAN | true | Use PNG optimizer (may be slower). |
| drop_metadataopt | BOOLEAN | true | Strip embedded metadata (EXIF/ICC) when possible. |
| reduce_palette_ditheropt | COMBO | none | Dither for palette reduction (fs/none). |
| reduce_palette_methodopt | COMBO | mediancut | Palette selection algorithm. |
| posterize_bitsopt | INT | 00–8 | Posterize RGB to N bits before palette reduction (0 disables). |
| palette_lock_across_batchopt | BOOLEAN | false | Derive palette from first image and reuse for all in the batch. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| file | STRING | — |
| files_json | STRING | — |