Visit ComfyUI Online for ready-to-use ComfyUI environment
Overlay foreground image seamlessly on background with automatic resizing/cropping, opacity control for creative blending effects.
The ImageOverlay
node is designed to seamlessly overlay a foreground image on top of a background image, ensuring that the foreground image is automatically resized or cropped to match the background image's dimensions. This node is particularly useful for creating composite images where you want to blend two images together with a specified level of transparency. By adjusting the opacity, you can control the visibility of the foreground image over the background, allowing for creative effects such as adding textures, patterns, or other visual elements to your artwork. The node handles the resizing and alignment of the images, making it easy to achieve professional-looking results without needing advanced image editing skills.
The background image onto which the foreground image will be overlaid. This image serves as the base layer and will remain visible beneath the foreground image. It should be provided in a compatible format and will be automatically converted to RGB mode if necessary.
The foreground image that will be overlaid on top of the background image. This image will be resized or cropped to match the dimensions of the background image, ensuring a perfect fit. It should also be provided in a compatible format and will be converted to RGB mode if necessary.
A float value that determines the transparency level of the foreground image when overlaid on the background image. The value ranges from 0.0 to 1.0, where 0.0 means the foreground image is completely transparent (invisible), and 1.0 means the foreground image is fully opaque. The default value is typically set to 0.5, providing a balanced blend of both images.
The resulting image after the foreground image has been overlaid on the background image with the specified opacity. This output is a composite image that combines elements of both input images, allowing for creative and visually appealing results. The output image is returned in a format compatible with further processing or saving.
© Copyright 2024 RunComfy. All Rights Reserved.