Nodes/ComfyUI-GiftHelperSuite/Gift Icon Auto Restore & Export
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.

By lingziwyh·Created 5 months ago·Updated a day ago· 7
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)

NameTypeDefaultDescription
subject_rgbaIMAGEKlein + Gift Chroma Master Pack RGBA output at the original canvas size.
subject_maskMASKGift Chroma Master foreground alpha: 1=subject, 0=transparent.
original_black_imageIMAGEOriginal black-background subject + glow image before Klein.
fx_strengthFLOAT0.750–2Opacity of the automatically recovered glow/effect layer.
unmult_black_pointFLOAT0.1050–0.5AE Unmult black point. Default 0.105 matches the former #380 chain and keeps glow edges continuous without revealing black-floor noise.
fx_reachFLOAT0.350.05–1Maximum effect search distance relative to subject size.
fx_edge_featherINT320–256Softens the subject-shaped effect search region.
alpha_cutoffFLOAT0.0020–0.2Final alpha at or below this value is treated as invalid edge haze.
enable_edge_fadeBOOLEANtrueFade subject and effects before the source canvas edge so cropped arms/close-ups cannot leave a straight hard boundary.
edge_guard_percentFLOAT0.00–25Fully rejected border width as a percentage of the short canvas side. Default 0 keeps every non-edge pixel available.
edge_feather_percentFLOAT2.50.1–40Narrow 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_visibilityFLOAT0.0060–0.2Minimum premultiplied RGB contribution considered visible. The automatic border-noise estimate can raise this threshold.
crop_paddingINT00–256Optional pixels kept around the valid final-alpha bounds.
output_paddingINT80–512Transparent padding around the target-size ICON. The thumbnail padding is scaled proportionally from this value.
target_sizeINT128064–4096
thumbnail_sizeINT16816–1024
preview_scaleFLOAT1.040.05–4Preview ICON size relative to target_size before centering.
preview_canvas_sizeINT1680256–4096Size of the bundled square guide background when no custom background is connected.
performance_modeCOMBOautoAuto uses ComfyUI's CUDA device and returns outputs to the input device.
preview_backgroundoptIMAGEOptional background used only for the preview output.
edge_guard_maskoptMASKOptional custom safety matte: 1=keep, 0=fade. Overrides the generated rounded edge guard.

Outputs (3)

NameTypeDescription
previewIMAGEICON composited over preview_background; checkerboard when no background is connected.
icon_1280_rgbaIMAGETight-cropped RGBA, long side fitted to target_size, transparent short-side padding.
icon_168_rgbaIMAGEPremultiplied-alpha thumbnail derived from the standard ICON.