ComfyUI > Nodes > WAS Node Suite > Image Shadows and Highlights

ComfyUI Node: Image Shadows and Highlights

Class Name

Image Shadows and Highlights

Category
WAS Suite/Image/Adjustment
Author
WASasquatch (Account age: 4688days)
Extension
WAS Node Suite
Latest Updated
2024-08-25
Github Stars
1.07K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Shadows and Highlights Description

Enhance image quality by adjusting shadows and highlights for better contrast and detail.

Image Shadows and Highlights:

The Image Shadows and Highlights node is designed to enhance the visual quality of your images by adjusting the shadows and highlights. This node allows you to fine-tune the darker and lighter areas of an image, providing better contrast and detail. By manipulating the shadow and highlight thresholds, as well as their respective factors, you can achieve a more balanced and visually appealing image. This node is particularly useful for AI artists looking to improve the dynamic range and depth of their images, making them more vibrant and lifelike.

Image Shadows and Highlights Input Parameters:

shadow_threshold

The shadow_threshold parameter determines the intensity level below which pixels are considered shadows. Adjusting this value allows you to control which parts of the image are affected by the shadow adjustments. The minimum value is 0, the maximum value is 255, and the default value is 30. Lower values will include more of the darker areas in the shadow adjustments, while higher values will limit the adjustments to the darkest regions.

highlight_threshold

The highlight_threshold parameter sets the intensity level above which pixels are considered highlights. This allows you to control which parts of the image are affected by the highlight adjustments. The minimum value is 0, the maximum value is 255, and the default value is 220. Lower values will include more of the lighter areas in the highlight adjustments, while higher values will limit the adjustments to the brightest regions.

shadow_factor

The shadow_factor parameter controls the intensity of the shadow adjustments. A higher value will make the shadows darker, enhancing the contrast in the darker areas of the image. The minimum value is 0.0, the maximum value is typically around 3.0, and the default value is 1.5. Adjust this parameter to achieve the desired level of shadow enhancement.

highlight_factor

The highlight_factor parameter controls the intensity of the highlight adjustments. A lower value will make the highlights less intense, reducing the brightness in the lighter areas of the image. The minimum value is 0.0, the maximum value is typically around 3.0, and the default value is 0.5. Use this parameter to fine-tune the brightness of the highlights.

shadow_smoothing

The shadow_smoothing parameter applies a smoothing effect to the shadow adjustments, helping to blend the changes more naturally into the image. The minimum value is 0, the maximum value is typically around 10, and the default value is 0. Higher values will result in smoother transitions in the shadow areas.

highlight_smoothing

The highlight_smoothing parameter applies a smoothing effect to the highlight adjustments, ensuring a more natural blend of changes in the lighter areas of the image. The minimum value is 0, the maximum value is typically around 10, and the default value is 0. Higher values will result in smoother transitions in the highlight areas.

simplify_isolation

The simplify_isolation parameter helps to simplify the masks used for isolating shadows and highlights, potentially improving performance and reducing artifacts. The minimum value is 0, the maximum value is typically around 10, and the default value is 0. Adjust this parameter if you encounter issues with the shadow or highlight masks.

Image Shadows and Highlights Output Parameters:

result

The result parameter is the final image with the adjusted shadows and highlights. This output provides a visually enhanced version of the input image, with improved contrast and detail in both the darker and lighter areas.

shadows

The shadows parameter is a mask that highlights the areas of the image identified as shadows. This output can be useful for further processing or analysis, allowing you to see which parts of the image were affected by the shadow adjustments.

highlights

The highlights parameter is a mask that highlights the areas of the image identified as highlights. Similar to the shadows mask, this output can be used for additional processing or analysis, showing which parts of the image were affected by the highlight adjustments.

Image Shadows and Highlights Usage Tips:

  • Experiment with different shadow_threshold and highlight_threshold values to find the optimal balance for your specific image.
  • Use the shadow_factor and highlight_factor parameters to fine-tune the intensity of the adjustments, enhancing the overall contrast and detail.
  • Apply shadow_smoothing and highlight_smoothing to achieve more natural transitions and avoid harsh edges in the adjusted areas.
  • Utilize the simplify_isolation parameter if you encounter performance issues or artifacts in the shadow or highlight masks.

Image Shadows and Highlights Common Errors and Solutions:

Image appears too dark or too bright

  • Explanation: This issue may occur if the shadow_factor or highlight_factor values are set too high or too low.
  • Solution: Adjust the shadow_factor and highlight_factor parameters to achieve a more balanced image. Start with the default values and make incremental changes.

Harsh edges in shadow or highlight areas

  • Explanation: This can happen if the shadow_smoothing or highlight_smoothing parameters are set too low.
  • Solution: Increase the shadow_smoothing and highlight_smoothing values to create smoother transitions in the adjusted areas.

Performance issues or artifacts in masks

  • Explanation: Complex masks can cause performance issues or visual artifacts.
  • Solution: Use the simplify_isolation parameter to simplify the masks and improve performance. Adjust this parameter incrementally to find the optimal setting.

Image Shadows and Highlights Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.