Nodes/ComfyUI Layer Style/LayerColor: AutoAdjust V2
ComfyUI Node Runs on cloud

LayerColor: AutoAdjust V2

AutoAdjust V2 — auto white-balance and levels, with manual trim

By chflame163·Created 3 years ago·Updated 4 days ago· 3,113
LayerColor: AutoAdjust V2
  • image
  • mask
  • image
â—„strength100â–º
â—„brightness0â–º
â—„contrast0â–º
â—„saturation0â–º
â—„red0â–º
â—„green0â–º
â—„blue0â–º
◄mode▾►

Renders come out flat, hazy, or slightly off-color more often than they should. AutoAdjust V2 is the one-click cleanup for that - it analyzes the image and stretches the tones and color balance the way an "auto levels / auto color" button would, then lets you dial the effect back and nudge individual channels by hand. It's the node to reach for when an image looks almost right but washed out, and you don't want to hand-build a curves setup.

How it works

The auto part looks at the image's histogram and stretches it - pushing the darkest pixels toward black and the brightest toward white, and often neutralizing a color cast in the process. That's what recovers contrast and punch from a flat render. The strength control then blends between the original and the fully auto-corrected version, so you're never stuck with an over-aggressive result, and the manual sliders let you push it further in any direction.

The inputs that matter

  • image (IMAGE) - the picture to correct.
  • strength (default 100) - how much of the auto correction to apply. This is the master dial; drop it to 50–70 when full auto overcooks the contrast.
  • brightness / contrast / saturation (each −100 to 100, default 0) - manual nudges layered on top of the auto pass.
  • red / green / blue (each −100 to 100) - per-channel trim, for killing a stubborn color cast the auto pass didn't fully neutralize.
  • mode - which aspect the auto correction works on: RGB (full color-and-tone), lum + sat, mono, luminance (tone only), or saturation. Use luminance when you want the levels fixed but the colors left alone.
  • mask (optional MASK) - confine the adjustment to a region.

Output is a single image - the corrected result.

How to install it

ComfyUI Manager: search ComfyUI Layer Style, install, restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/chflame163/ComfyUI_LayerStyle

install requirements.txt, restart. It's under 😺dzNodes → LayerColor.

Common issues

Auto-correction is content-dependent, and that's where it surprises people. An image that's meant to be low-contrast or moody - a foggy scene, a deliberately dark render - will get "fixed" into something punchy and wrong, because the auto stretch doesn't know your intent. The fix is strength: pull it down until the correction is a nudge rather than a takeover, or switch mode to luminance so it only touches tone. If a color cast persists after the auto pass, that's what the per-channel red/green/blue sliders are for. And if you only want the correction on part of the frame - say, the subject but not a stylized background - mask it. For a purely manual, predictable brightness/contrast/saturation tweak with no auto analysis at all, the pack's Brightness & Contrast node is the simpler choice.

Category😺dzNodes/LayerColor

Inputs (10)

NameTypeDefaultDescription
imageIMAGE—
strengthINT1000–100—
brightnessINT0-100–100—
contrastINT0-100–100—
saturationINT0-100–100—
redINT0-100–100—
greenINT0-100–100—
blueINT0-100–100—
modeCOMBO5 options: RGB, lum + sat, mono, luminance, saturation
maskoptMASK—

Outputs (1)

NameTypeDescription
imageIMAGE—