Visit ComfyUI Online for ready-to-use ComfyUI environment
Combine latent images into composite image, overlay, resize, mask blending for AI artists' creative compositions.
The LatentComposite
node is designed to combine two latent images into a single composite image. This node allows you to overlay one latent image (source) onto another (destination) at a specified position, providing flexibility in creating complex compositions. The node supports optional resizing of the source image to fit the destination and can also utilize a mask to control the blending of the two images. This functionality is particularly useful for AI artists looking to merge different elements seamlessly within the latent space, enabling more creative and intricate designs.
The destination
parameter represents the base latent image onto which the source image will be overlaid. This is the primary image that will be modified by the composite operation. It is of type LATENT
.
The source
parameter is the latent image that will be overlaid onto the destination image. This image can be resized and positioned according to the specified parameters. It is of type LATENT
.
The x
parameter specifies the horizontal position where the top-left corner of the source image will be placed on the destination image. It is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION
, with steps of 8.
The y
parameter specifies the vertical position where the top-left corner of the source image will be placed on the destination image. It is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION
, with steps of 8.
The resize_source
parameter is a boolean that determines whether the source image should be resized to fit the destination image. If set to True
, the source image will be resized; if False
, it will retain its original dimensions. The default value is False
.
The mask
parameter is optional and allows you to provide a mask that controls the blending of the source image onto the destination image. The mask can define areas of transparency and opacity, enabling more precise and controlled composites. It is of type MASK
.
The output of the LatentComposite
node is a single composite latent image. This image is the result of overlaying the source image onto the destination image according to the specified parameters. The output retains the latent format, allowing for further processing or decoding into a visible image.
x
and y
values to position the source image precisely where you want it on the destination image.resize_source
to ensure a better fit.MASK
and correctly formatted.resize_source
parameter to resize the source image to match the destination dimensions.x
or y
position is outside the allowable range.x
and y
values to be within the range defined by MAX_RESOLUTION
.© Copyright 2024 RunComfy. All Rights Reserved.