ComfyUI Node
Gift Icon Auto Restore & Export
Restores glow/translucency from the original black-background render, crops from the combined final alpha, and exports standard transparent gift ICON sizes.
Gift Icon Auto Restore & Export
- subject_rgba
- subject_mask
- original_black_image
- preview_background
- edge_guard_mask
- preview
- icon_1280_rgba
- icon_168_rgba
◄fx_strength0.75►
◄unmult_black_point0.105►
◄fx_reach0.35►
◄fx_edge_feather32►
◄alpha_cutoff0.002►
◄enable_edge_fadetrue►
◄edge_guard_percent0.0►
◄edge_feather_percent2.5►
◄min_effect_visibility0.006►
◄crop_padding0►
◄output_padding8►
◄target_size1280►
◄thumbnail_size168►
◄preview_scale1.04►
◄preview_canvas_size1680►
◄performance_modeauto►
CategoryGiftHelperSuite/Icon
Inputs (21)
| Name | Type | Default | Description |
|---|---|---|---|
| subject_rgba | IMAGE | Klein + Gift Chroma Master Pack RGBA output at the original canvas size. | |
| subject_mask | MASK | Gift Chroma Master foreground alpha: 1=subject, 0=transparent. | |
| original_black_image | IMAGE | Original black-background subject + glow image before Klein. | |
| fx_strength | FLOAT | 0.750–2 | Opacity of the automatically recovered glow/effect layer. |
| unmult_black_point | FLOAT | 0.1050–0.5 | AE Unmult black point. Default 0.105 matches the former #380 chain and keeps glow edges continuous without revealing black-floor noise. |
| fx_reach | FLOAT | 0.350.05–1 | Maximum effect search distance relative to subject size. |
| fx_edge_feather | INT | 320–256 | Softens the subject-shaped effect search region. |
| alpha_cutoff | FLOAT | 0.0020–0.2 | Final alpha at or below this value is treated as invalid edge haze. |
| enable_edge_fade | BOOLEAN | true | Fade subject and effects before the source canvas edge so cropped arms/close-ups cannot leave a straight hard boundary. |
| edge_guard_percent | FLOAT | 0.00–25 | Fully rejected border width as a percentage of the short canvas side. Default 0 keeps every non-edge pixel available. |
| edge_feather_percent | FLOAT | 2.50.1–40 | Narrow soft transition at the outer canvas edge. Default 2.5% is about 32 px on a 1280 image, leaving the central 95% untouched. |
| min_effect_visibility | FLOAT | 0.0060–0.2 | Minimum premultiplied RGB contribution considered visible. The automatic border-noise estimate can raise this threshold. |
| crop_padding | INT | 00–256 | Optional pixels kept around the valid final-alpha bounds. |
| output_padding | INT | 80–512 | Transparent padding around the target-size ICON. The thumbnail padding is scaled proportionally from this value. |
| target_size | INT | 128064–4096 | — |
| thumbnail_size | INT | 16816–1024 | — |
| preview_scale | FLOAT | 1.040.05–4 | Preview ICON size relative to target_size before centering. |
| preview_canvas_size | INT | 1680256–4096 | Size of the bundled square guide background when no custom background is connected. |
| performance_mode | COMBO | auto | Auto uses ComfyUI's CUDA device and returns outputs to the input device. |
| preview_backgroundopt | IMAGE | Optional background used only for the preview output. | |
| edge_guard_maskopt | MASK | Optional custom safety matte: 1=keep, 0=fade. Overrides the generated rounded edge guard. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| preview | IMAGE | ICON composited over preview_background; checkerboard when no background is connected. |
| icon_1280_rgba | IMAGE | Tight-cropped RGBA, long side fitted to target_size, transparent short-side padding. |
| icon_168_rgba | IMAGE | Premultiplied-alpha thumbnail derived from the standard ICON. |