ComfyUI  >  Nodes  >  Runtime44 ComfyUI Nodes >  Runtime44 Image Overlay

ComfyUI Node: Runtime44 Image Overlay

Class Name

Runtime44ImageOverlay

Category
image/postprocessing
Author
runtime44 (Account age: 176 days)
Extension
Runtime44 ComfyUI Nodes
Latest Updated
7/1/2024
Github Stars
0.0K

How to Install Runtime44 ComfyUI Nodes

Install this extension via the ComfyUI Manager by searching for  Runtime44 ComfyUI Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Runtime44 ComfyUI Nodes in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Runtime44 Image Overlay Description

Overlay one image onto another with alignment, scaling, positioning, and transparency control for composite image creation.

Runtime44 Image Overlay:

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.

Runtime44 Image Overlay Input Parameters:

image

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.

overlay

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.

overlay_mask

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.

align_x

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.

align_y

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.

x

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.

y

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.

scale

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.

Runtime44 Image Overlay Output Parameters:

image

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.

Runtime44 Image Overlay Usage Tips:

  • To ensure the overlay image blends well with the base image, use a well-defined overlay_mask to control transparency.
  • Experiment with the align_x and align_y parameters to quickly position the overlay in common locations like corners or the center.
  • Use the scale parameter to adjust the size of the overlay image so that it fits well within the dimensions of the base image.
  • Fine-tune the position of the overlay using the x and y offset parameters for precise placement.

Runtime44 Image Overlay Common Errors and Solutions:

"Invalid tensor format"

  • Explanation: This error occurs when the input images are not in the expected tensor format.
  • Solution: Ensure that both the base image and the overlay image are correctly converted to tensors before passing them to the node.

"Overlay image out of bounds"

  • Explanation: This error happens when the overlay image, after scaling and positioning, extends beyond the dimensions of the base image.
  • Solution: Adjust the scale, x, and y parameters to ensure the overlay fits within the base image boundaries.

"Invalid alignment value"

  • Explanation: This error occurs when the align_x or align_y parameters are set to values other than "start", "center", or "end".
  • Solution: Verify that the alignment parameters are set to one of the accepted string values: "start", "center", or "end".

Runtime44 Image Overlay Related Nodes

Go back to the extension to check out more related nodes.
Runtime44 ComfyUI Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.