LayerStyle

2167
By chflame
Updated 15 days ago
View on GitHub →See Common Issues →

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.

Available Nodes

LayerColor: HSV

LayerColor: HSV Node Documentation

Overview

The "LayerColor: HSV" node is part of the ComfyUI nodes, specifically contained within the 😺dzNodes/LayerColor category. This node is designed to perform color correction on images by adjusting the Hue, Saturation, and Value (HSV) components. It transforms an input image by modifying these three aspects according to user-defined parameters, allowing for precise color manipulation and enhancement of visual appearance.

Functionality

What This Node Does

The node adjusts the color properties of an image based on the HSV color model:

  • Hue (H): Controls the color shade. It can be shifted across the color spectrum, allowing for complete color transformations.
  • Saturation (S): Adjusts the intensity or purity of the colors. Increasing saturation makes colors more vivid, while decreasing it results in more muted tones.
  • Value (V): Impacts the brightness of colors. Raising the value renders the image lighter, whereas lowering it makes the image darker.

By customizing these elements, users can modify images to better suit aesthetic criteria or correct color imbalances.

Inputs

The "LayerColor: HSV" node accepts the following inputs:

  • Image: The primary input, which is the image to be processed. This is required for the node to function.
  • H (Hue): An integer value ranging from -255 to 255, with a default of 0. Positive or negative adjustments will rotate hues on the color wheel.
  • S (Saturation): An integer value ranging from -255 to 255, with a default of 0. Increasing this will amplify the color saturation, while reducing it leads to desaturation.
  • V (Value): An integer value ranging from -255 to 255, with a default of 0. Adjusting this value brightens or darkens the image accordingly.

Outputs

The node produces the following output:

  • Image: The output image that has undergone color correction based on the specified HSV adjustments. This image is ready for further processing or display.

Usage in ComfyUI Workflows

In a ComfyUI workflow, the "LayerColor: HSV" node can be strategically placed anywhere color correction is required. It may be used individually to prepare images for direct presentation or as a preprocessing step before other image manipulation nodes. Its control over hue, saturation, and value makes it particularly useful in cases where:

  • The color tone of an image needs careful adjustment to match a specific theme or mood.
  • Enhancing certain aspects of an image for better visual clarity or impact is necessary.
  • Correcting unwanted color casts or imbalances after other processing nodes is required.

Special Features or Considerations

  • Multi-Image Processing: This node can handle batches of images, applying HSV adjustments to each image efficiently. This is particularly advantageous for workflows dealing with high volumes of visual data.
  • Color Mode Preservation: The node maintains the original color mode of images, even supporting RGBA mode, ensuring transparent elements are preserved after processing.

Overall, the "LayerColor: HSV" node is a powerful tool in the ComfyUI suite for users aiming to fine-tune the color properties of images with precision and control. It serves both functional and creative purposes in digital image processing workflows.