ComfyUI Node
Donut Image Adjust
A ComfyUI node in donut/image with 21 inputs and 2 outputs.
Donut Image Adjust
- image
- image
- gamma
◄operationgamma►
◄ag_methodgslf►
◄ag_strength1.0►
◄ag_target0.50►
◄ag_percentile50►
◄ag_directionboth►
◄gm_gamma0►
◄gm_dither0.0►
◄wb_methodgray_world►
◄wb_strength1.0►
◄wb_clip_percent0.1►
◄hs_black_point0.0►
◄hs_white_point100.0►
◄hs_modeluminance►
◄lc_radius20►
◄lc_amount0.20►
◄lc_protect_tones0.0►
◄lc_fast_blurtrue►
◄cas_sharpness0.50►
◄cas_contrast0.0►
Categorydonut/image
Inputs (21)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| operation | COMBO | gamma | Which image adjustment operation to apply. |
| ag_methodopt | COMBO | gslf | Detection method: simple_mean (fastest), iagcwd (deviation-based), gslf (histogram-based, most sophisticated), percentile (robust to outliers) |
| ag_strengthopt | FLOAT | 1.00–2 | Correction strength (1.0 = full correction) |
| ag_targetopt | FLOAT | 0.500.1–0.9 | Target value for simple_mean and percentile methods |
| ag_percentileopt | FLOAT | 501–99 | Which percentile to target (percentile method only) |
| ag_directionopt | COMBO | both | both: auto brighten/darken, brighten_only: only brighten dark images, darken_only: only darken bright images |
| gm_gammaopt | FLOAT | 0-100–100 | Gamma adjustment (-100 to +100). Positive brightens shadows, negative darkens them. |
| gm_ditheropt | FLOAT | 0.00–2 | Dither amount to reduce banding (0 = off, 0.5 = subtle, 1.0 = 1 LSB worth of noise) |
| wb_methodopt | COMBO | gray_world | gray_world: shift means to gray. white_patch: scale by brightest. combined: both. auto_levels: per-channel stretch (Auto Tone). photoshop: per-channel + midtone snap (Auto Color) |
| wb_strengthopt | FLOAT | 1.00–2 | Correction strength (1.0 = full correction) |
| wb_clip_percentopt | FLOAT | 0.10–10 | Percent of pixels to clip from brightest/darkest (Photoshop default: 0.1%) |
| hs_black_pointopt | FLOAT | 0.00–49 | Percentile for black point (0 = absolute min, 1+ = robust) |
| hs_white_pointopt | FLOAT | 100.051–100 | Percentile for white point (100 = absolute max, 99- = robust) |
| hs_modeopt | COMBO | luminance | global: bounds from luminance, same stretch to RGB (preserves ratios). per_channel: stretch RGB independently (may shift colors). luminance: LAB L-only (preserves hue/saturation, matches LayerStyle) |
| lc_radiusopt | FLOAT | 201–200 | Large radius for local contrast enhancement |
| lc_amountopt | FLOAT | 0.200–1 | Keep low to avoid halos (0.1-0.3 typical) |
| lc_protect_tonesopt | FLOAT | 0.00–1 | Protect shadows/highlights from clipping |
| lc_fast_bluropt | BOOLEAN | true | Use separable blur (faster, identical quality) |
| cas_sharpnessopt | FLOAT | 0.500–1 | Sharpening strength |
| cas_contrastopt | FLOAT | 0.0-1–1 | Contrast adjustment (0 = neutral) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| gamma | FLOAT | — |