Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate constant color image with specified RGB values for solid backgrounds or masks in image processing pipelines, offering flexibility and efficiency for various applications.
The ImageConstant
node is designed to generate a constant color image based on specified RGB values. This node is particularly useful for creating solid color backgrounds or masks in your image processing pipeline. By allowing you to define the width, height, and batch size of the image, along with the red, green, and blue color components, it provides a flexible way to produce uniform images that can be used in various artistic and technical applications. The node operates efficiently on the specified device, making it a versatile tool for both CPU and GPU environments.
The width
parameter defines the width of the generated image in pixels. It accepts integer values with a default of 512, a minimum of 1, and a maximum defined by MAX_RESOLUTION
. Adjusting this parameter will change the horizontal dimension of the output image.
The height
parameter specifies the height of the generated image in pixels. Similar to the width
parameter, it accepts integer values with a default of 512, a minimum of 1, and a maximum defined by MAX_RESOLUTION
. This parameter controls the vertical dimension of the output image.
The batch_size
parameter determines the number of images to generate in a single batch. It accepts integer values with a default of 1, a minimum of 1, and a maximum of 4096. This is useful for generating multiple images simultaneously, which can be beneficial for batch processing tasks.
The red
parameter sets the intensity of the red color component in the generated image. It accepts floating-point values ranging from 0.0 to 1.0, with a default of 0.0. Adjusting this parameter will change the red channel's intensity in the output image.
The green
parameter controls the intensity of the green color component in the generated image. It accepts floating-point values from 0.0 to 1.0, with a default of 0.0. Modifying this parameter will affect the green channel's intensity in the output image.
The blue
parameter defines the intensity of the blue color component in the generated image. It accepts floating-point values between 0.0 and 1.0, with a default of 0.0. Changing this parameter will alter the blue channel's intensity in the output image.
The IMAGE
output parameter provides the generated image(s) as a tensor. This tensor contains the specified number of images (as defined by batch_size
), each with the defined width, height, and RGB color values. The output can be used directly in subsequent image processing nodes or saved for later use.
width
and height
to match your desired image dimensions and adjust the red
, green
, and blue
parameters to achieve the desired color.batch_size
parameter to generate multiple images with the same color settings, which can be useful for batch processing or creating uniform image sets.{new_shape}
and {orig_shape}
width
, height
, and batch_size
parameters to ensure they are consistent across all inputs.{parameter_name}
red
, green
, and blue
values are between 0.0 and 1.0.{device}
© Copyright 2024 RunComfy. All Rights Reserved.