ComfyUI > Nodes > ComfyUI-Image-Effects > ๐ŸŒ— Shadow/Highlight

ComfyUI Node: ๐ŸŒ— Shadow/Highlight

Class Name

ShadowHighlightNode

Category
Image Effects
Author
orion4d (Account age: 929days)
Extension
ComfyUI-Image-Effects
Latest Updated
2025-05-28
Github Stars
0.02K

How to Install ComfyUI-Image-Effects

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Effects
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Effects in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

๐ŸŒ— Shadow/Highlight Description

Enhance image quality by adjusting shadows and highlights for improved contrast and brightness control.

๐ŸŒ— Shadow/Highlight:

The ShadowHighlightNode is designed to enhance the visual quality of images by adjusting the shadows and highlights. This node allows you to fine-tune the contrast and brightness in specific areas of an image, making it particularly useful for improving the dynamic range and bringing out details in both dark and bright regions. By applying smooth transitions and corrections to shadows and highlights, the node helps in achieving a balanced and visually appealing image. The main goal of this node is to provide a flexible and intuitive way to enhance images, making it an essential tool for AI artists looking to refine their artwork with precise control over lighting effects.

๐ŸŒ— Shadow/Highlight Input Parameters:

image

This parameter represents the input image that you want to process. It is the base upon which shadow and highlight adjustments will be applied. The image should be in a format compatible with the node's processing capabilities.

shadow_amount

This parameter controls the intensity of the shadow correction applied to the image. It ranges from -100.0 to 100.0, with a default value of 0.0. A positive value increases the brightness of shadowed areas, while a negative value darkens them, allowing for nuanced control over shadow details.

highlight_amount

This parameter adjusts the intensity of the highlight correction. It also ranges from -100.0 to 100.0, with a default value of 0.0. Positive values enhance the brightness of highlighted areas, while negative values reduce it, helping to manage overexposed regions.

shadow_width

This parameter defines the threshold for what is considered a shadow in the image, expressed as a percentage. It ranges from 0.0 to 100.0, with a default value of 50.0. A lower value means more areas will be treated as shadows, while a higher value restricts the shadow correction to darker regions.

highlight_width

This parameter sets the threshold for highlights, also expressed as a percentage. It ranges from 0.0 to 100.0, with a default value of 50.0. A lower value means more areas will be treated as highlights, while a higher value limits the correction to the brightest parts of the image.

radius

This parameter determines the radius of the Gaussian blur applied to smooth the transitions between corrected and uncorrected areas. It ranges from 0.0 to 100.0, with a default value of 30.0. A larger radius results in smoother transitions, reducing harsh edges between different lighting zones.

๐ŸŒ— Shadow/Highlight Output Parameters:

IMAGE

The output is the processed image with adjusted shadows and highlights. This enhanced image reflects the changes made based on the input parameters, offering improved contrast and detail in both dark and bright areas. The output is designed to be visually appealing and ready for further artistic or technical use.

๐ŸŒ— Shadow/Highlight Usage Tips:

  • Experiment with small adjustments to shadow_amount and highlight_amount to achieve subtle enhancements without over-processing the image.
  • Use the radius parameter to control the smoothness of transitions; a higher radius can help in blending corrections seamlessly into the image.
  • Adjust shadow_width and highlight_width to fine-tune which areas of the image are affected, allowing for targeted corrections in specific lighting conditions.

๐ŸŒ— Shadow/Highlight Common Errors and Solutions:

Image format not supported

  • Explanation: The input image is not in a compatible format for processing.
  • Solution: Ensure the image is in a format supported by the node, such as a standard image tensor.

Shadow or highlight values out of range

  • Explanation: The shadow_amount or highlight_amount values are set outside the allowed range.
  • Solution: Adjust the values to be within the -100.0 to 100.0 range.

Radius too large for image size

  • Explanation: The radius value is too large relative to the image dimensions, causing excessive blurring.
  • Solution: Reduce the radius value to better suit the size of the image being processed.

๐ŸŒ— Shadow/Highlight Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Effects
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.