Nodes/MdColorMod/Color Auto Stretch Contrast (MD)
ComfyUI Node

Color Auto Stretch Contrast (MD)

Automatically stretches the contrast of the image similar to GIMP's Auto Stretch Contrast, with options to preserve colors and use non-linear mapping.

By MdONeilsl·Created 2 months ago·Updated about a month ago· 0
Color Auto Stretch Contrast (MD)
  • image
  • mask
  • image
keep_colorstrue
non_linearfalse
Categorymd/image/color

Inputs (4)

NameTypeDefaultDescription
imageIMAGEInput image tensor.
keep_colorsBOOLEANtruePreserve the color ratios when stretching contrast.
non_linearBOOLEANfalseUse a non-linear (perceptual) stretching method.
maskoptMASKOptional mask to restrict the adjustment area.

Outputs (1)

NameTypeDescription
imageIMAGEThe contrast-stretched image.