Nodes/MdColorMod/Color Levels (MD)
ComfyUI Node

Color Levels (MD)

Adjusts input/output levels and gamma for a selected color channel, with optional auto-input range.

By MdONeilsl·Created 2 months ago·Updated about a month ago· 0
Color Levels (MD)
  • image
  • mask
  • image
ChannelValue
InterpolationNon-Linear
Input_low0
Input_high255
Input_gamma1.00
Input_clampfalse
Output_low0
Output_high255
Output_clampfalse
Auto_inputfalse
Categorymd/image/color

Inputs (12)

NameTypeDefaultDescription
imageIMAGEInput image tensor.
ChannelCOMBOValueWhich channel to apply the levels adjustment.
InterpolationCOMBONon-LinearType of interpolation for the level mapping.
Input_lowFLOAT00–255Lower bound for input levels (0-255).
Input_highFLOAT2550–255Upper bound for input levels (0-255).
Input_gammaFLOAT1.000.1–10Gamma correction applied to the input range.
Input_clampBOOLEANfalseClamp input values to the specified range before mapping.
Output_lowFLOAT00–255Lower bound for output levels (0-255).
Output_highFLOAT2550–255Upper bound for output levels (0-255).
Output_clampBOOLEANfalseClamp output values to the specified range after mapping.
Auto_inputBOOLEANfalseAutomatically determine input low/high from image content.
maskoptMASKOptional mask to restrict the adjustment area.

Outputs (1)

NameTypeDescription
imageIMAGEThe levels-adjusted image.