Visit ComfyUI Online for ready-to-use ComfyUI environment
Overlay one image onto another with alignment, scaling, positioning, and transparency control for composite image creation.
The Runtime44ImageOverlay
node is designed to overlay one image onto another, allowing you to create composite images with ease. This node is particularly useful for adding elements such as logos, watermarks, or any other graphical overlays to your base images. By providing options to align, scale, and position the overlay, it offers a high degree of customization, ensuring that the overlay fits perfectly onto the base image. The node also supports the use of masks to control the transparency of the overlay, giving you precise control over how the overlay blends with the base image. This functionality is essential for creating professional-quality images where multiple graphical elements need to be combined seamlessly.
This parameter represents the base image onto which the overlay will be applied. It is a tensor that contains the pixel data of the image. The quality and resolution of this image will directly affect the final output.
This parameter is the image that you want to overlay on top of the base image. Like the base image, it is also a tensor containing pixel data. The overlay image can be resized and repositioned based on the other parameters.
The overlay mask is a tensor that defines the transparency of the overlay image. A value of 1.0 means fully opaque, while 0.0 means fully transparent. This mask allows for complex blending effects, making parts of the overlay image see-through.
This parameter determines the horizontal alignment of the overlay image. It accepts three string values: "start", "center", and "end". "Start" aligns the overlay to the left, "center" aligns it to the middle, and "end" aligns it to the right of the base image.
This parameter determines the vertical alignment of the overlay image. It accepts three string values: "start", "center", and "end". "Start" aligns the overlay to the top, "center" aligns it to the middle, and "end" aligns it to the bottom of the base image.
This integer parameter specifies the horizontal offset for the overlay image. It allows you to fine-tune the horizontal position of the overlay by moving it left or right from the anchor point defined by align_x
.
This integer parameter specifies the vertical offset for the overlay image. It allows you to fine-tune the vertical position of the overlay by moving it up or down from the anchor point defined by align_y
.
This float parameter determines the scaling factor for the overlay image. A value of 1.0 means no scaling, while values greater than 1.0 will enlarge the overlay, and values less than 1.0 will shrink it. This allows you to adjust the size of the overlay to fit the base image appropriately.
The output is a tensor representing the composite image, which is the result of overlaying the overlay
image onto the image
base image. This tensor contains the pixel data of the final image, ready for further processing or saving.
overlay_mask
to control transparency.align_x
and align_y
parameters to quickly position the overlay in common locations like corners or the center.scale
parameter to adjust the size of the overlay image so that it fits well within the dimensions of the base image.x
and y
offset parameters for precise placement.scale
, x
, and y
parameters to ensure the overlay fits within the base image boundaries.align_x
or align_y
parameters are set to values other than "start", "center", or "end".© Copyright 2024 RunComfy. All Rights Reserved.