Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance image quality by adjusting shadows and highlights for better contrast and detail.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
shadow_threshold
and highlight_threshold
values to find the optimal balance for your specific image.shadow_factor
and highlight_factor
parameters to fine-tune the intensity of the adjustments, enhancing the overall contrast and detail.shadow_smoothing
and highlight_smoothing
to achieve more natural transitions and avoid harsh edges in the adjusted areas.simplify_isolation
parameter if you encounter performance issues or artifacts in the shadow or highlight masks.shadow_factor
or highlight_factor
values are set too high or too low.shadow_factor
and highlight_factor
parameters to achieve a more balanced image. Start with the default values and make incremental changes.shadow_smoothing
or highlight_smoothing
parameters are set too low.shadow_smoothing
and highlight_smoothing
values to create smoother transitions in the adjusted areas.simplify_isolation
parameter to simplify the masks and improve performance. Adjust this parameter incrementally to find the optimal setting.© Copyright 2024 RunComfy. All Rights Reserved.