Visit ComfyUI Online for ready-to-use ComfyUI environment
Blend black-and-white with color images, preserving luminosity and adding color effects using LAB color space.
The ColorBlend node is designed to seamlessly blend a black-and-white image with a color image, creating a composite that retains the luminosity of the black-and-white image while incorporating the color information from the color image. This node is particularly useful for artists looking to add color to grayscale images or to create unique artistic effects by combining different layers. The blending process leverages the LAB color space, which separates the luminosity from the color information, allowing for precise control over the final output. By replacing the luminosity channel of the color image with that of the black-and-white image, the node ensures that the resulting image maintains the desired brightness and contrast while adopting the hues and saturation from the color layer.
The bw_layer
parameter represents the black-and-white image that will provide the luminosity information for the blending process. This image is converted to grayscale, and its luminosity values are used to replace the luminosity channel in the color image. The quality and details of the final blended image heavily depend on the contrast and brightness of this layer. This parameter is required and must be an image.
The color_layer
parameter represents the color image that will provide the color information for the blending process. This image is converted to the LAB color space, and its color channels are combined with the luminosity channel from the bw_layer
. The hues and saturation from this layer will define the color characteristics of the final blended image. This parameter is required and must be an image.
The output parameter is an image that results from blending the bw_layer
and color_layer
. This image retains the luminosity of the black-and-white layer while incorporating the color information from the color layer, resulting in a composite that combines the best features of both input images. The output is an image that can be used for further processing or as a final artwork.
bw_layer
and color_layer
have the same dimensions for optimal results. If they do not, the node will attempt to resize them, which may affect the quality of the final image.bw_layer
to achieve more dramatic and visually appealing results.color_layer
to create unique and varied artistic effects.<mode>
bw_layer
and color_layer
do not match, and the node is unable to resize them appropriately.bw_layer
and color_layer
are valid images. The node requires image inputs to function correctly.© Copyright 2024 RunComfy. All Rights Reserved.