Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform image color spaces (RGB, HSV, HSL) for creative adjustments and visual effects with accuracy and integrity.
The Convert Color Space node is designed to transform an image from one color space to another, such as from RGB to HSV or HSL, and vice versa. This node is particularly useful for AI artists who need to manipulate images in different color spaces to achieve specific visual effects or to prepare images for further processing. By converting between color spaces, you can leverage the unique properties of each space, such as the intuitive representation of colors in HSV or the perceptual uniformity in HSL, to enhance your creative workflow. This node ensures that the color information is accurately transformed, preserving the integrity of the original image while allowing for flexible and creative adjustments.
The in_space
parameter specifies the color space of the input image. It accepts three options: "RGB", "HSV", and "HSL". This parameter is crucial as it informs the node about the current color representation of the image, ensuring that the conversion process starts from the correct color space. For example, if your image is in RGB format, you should set this parameter to "RGB". This parameter does not have minimum or maximum values as it is a categorical choice.
The out_space
parameter defines the target color space to which the image will be converted. Similar to in_space
, it accepts "RGB", "HSV", and "HSL" as options. This parameter determines the final color representation of the image after the conversion process. For instance, if you want to convert an RGB image to HSV, you would set this parameter to "HSV". This parameter also does not have minimum or maximum values as it is a categorical choice.
The image
parameter is the actual image data that you want to convert. It should be provided in the form of a tensor, typically in the shape [B, H, W, C], where B is the batch size, H is the height, W is the width, and C is the number of color channels. This parameter is essential as it contains the visual information that will be transformed from one color space to another.
The output parameter IMAGE
is the transformed image in the target color space specified by the out_space
parameter. This output retains the same dimensions and structure as the input image but with the color information represented in the new color space. This allows you to use the converted image for further processing or visualization in your creative projects.
in_space
parameter correctly matches the color space of your input image.out_space
settings to see how various color spaces affect the appearance and properties of your image, which can be particularly useful for tasks like color-based segmentation or artistic effects.in_space
and out_space
parameters are set to the same value, no conversion will take place.in_space
and out_space
parameters are set to different values to perform a color space conversion.in_space
and out_space
parameters are set to one of the supported color spaces: "RGB", "HSV", or "HSL".© Copyright 2024 RunComfy. All Rights Reserved.