ComfyUI Node

Glare

Cheap lens bloom for highlights that glow

By isekai-sh·Created 9 months ago·Updated 8 months ago· 3
Glare
  • image
  • image
intensity0.50
threshold0.70
blur_radius15.0

IsekaiGlare adds bloom - the glow that spills out of bright areas in a photo taken through a lens. Streetlights, neon, sun hitting a window: real cameras scatter that light into a soft halo. Generated images usually don't have it, which is part of why they can look flat and "AI." This node fakes the halo in about a second, and it's one of the more genuinely useful effects in the pack for pushing renders toward "photographed."

How it works

It's a textbook bloom, implemented with numpy and Pillow:

  1. Compute per-pixel brightness and keep only the areas above your threshold (0–1, default 0.7). Everything dimmer than that is ignored.
  2. Gaussian-blur that bright-only mask by blur_radius (1–50, default 15). The blur turns hard highlights into a soft glow field.
  3. Add the blurred glow back to the original, scaled by intensity (0–1, default 0.5).

The three knobs map exactly onto the three decisions you're making: how bright something must be to glow (threshold), how far the glow spreads (blur_radius), and how strong it is (intensity).

The defaults are sensible but conservative - threshold 0.7 only catches genuinely bright pixels, blur 15 spreads reasonably, intensity 0.5 is a tasteful half-strength. For a subtle film look, that's often already right. For dramatic neon, drop threshold to 0.5 and raise blur.

The inputs

  • image - the image to bloom.
  • intensity - 0–1, default 0.5. Glow strength.
  • threshold - 0–1, default 0.7. Brightness cutoff for what counts as a highlight.
  • blur_radius - 1–50, default 15. Glow spread.

Output is a single image tensor.

Installing it

Ships in isekai-comfy-node:

ComfyUI Manager: search "isekai" → install isekai-comfy-node → restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/isekai-sh/isekai-comfy-node
cd isekai-comfy-node
pip install -r requirements.txt

Restart and it's under Isekai → Image/Effects. Pillow and requests; no models, no downloads.

Common issues

The pack-wide batch caveat applies (first frame only), and there's one design quirk to know about: the glow is added with simple addition, then clipped, so very bright scenes can clip to pure white faster than a proper tone-mapped bloom would. If your highlights blow out into featureless white blobs, drop intensity rather than fighting the threshold.

Also, this bloom treats everything bright as a light source. A white t-shirt in sunlight will glow just like a lamp. If that's not what you want, threshold is your friend - raise it so only true highlights catch the glow. It's the "what counts as bright" dial, and it does more work than people expect.

CategoryIsekai/Image/Effects

Inputs (4)

NameTypeDefaultDescription
imageIMAGE
intensityFLOAT0.500–1
thresholdoptFLOAT0.700–1
blur_radiusoptFLOAT15.01–50

Outputs (1)

NameTypeDescription
imageIMAGE