Visit ComfyUI Online for ready-to-use ComfyUI environment
Combine multiple images seamlessly with advanced processing for high-quality, cohesive compositions.
The FLATTEN (JOV) ⬇️ node is designed to combine multiple images into a single, cohesive image. This node is particularly useful for AI artists who need to merge various image layers or elements seamlessly. By leveraging advanced image processing techniques, the FLATTEN (JOV) ⬇️ node ensures that the final output maintains high quality and visual consistency. It allows for various scaling and fitting modes, ensuring that each image is appropriately adjusted before being combined. This node is essential for creating complex compositions where multiple images need to be integrated into a single frame, providing a streamlined and efficient workflow for artists.
The mode
parameter determines the scaling mode to be applied to the images before they are combined. It can take values from the EnumScaleMode
enumeration, such as NONE
for no scaling or CROP
for cropping the images to fit. This parameter ensures that each image is appropriately resized or cropped to match the desired output dimensions. The default value is EnumScaleMode.NONE
.
The sample
parameter specifies the interpolation method used during the scaling process. It can take values from the EnumInterpolation
enumeration, such as LANCZOS4
for high-quality scaling. This parameter affects the smoothness and quality of the resized images. The default value is EnumInterpolation.LANCZOS4
.
The wihi
parameter defines the width and height of the output image as a tuple (width, height). This parameter is crucial for setting the dimensions of the final combined image. The default value is [(512, 512)]
, with a minimum size constraint defined by MIN_IMAGE_SIZE
.
The matte
parameter specifies the matte color to be used in the output image as a tuple (R, G, B, A). This parameter ensures that any transparent areas in the combined image are filled with the specified matte color. The default value is [(0, 0, 0, 255)]
, with each component ranging from 0 to 255.
The combined_image
parameter is the final output of the node, representing the single image created by combining all input images. This output maintains the specified dimensions and matte color, ensuring a cohesive and visually consistent result. The combined image is returned as a tensor, ready for further processing or display.
LANCZOS4
for better visual results when resizing images.matte
parameter to match the background color of your composition for seamless integration.mode
parameter.mode
parameter is set to a valid value from the EnumScaleMode
enumeration. Correct any typos or incorrect values in the parameter settings.sample
parameter.sample
parameter is set to a valid value from the EnumInterpolation
enumeration. Double-check the parameter value for accuracy.© Copyright 2024 RunComfy. All Rights Reserved.