ComfyUI > Nodes > ComfyUI Level Pixel > Image Overlay [LP]

ComfyUI Node: Image Overlay [LP]

Class Name

ImageOverlay|LP

Category
LevelPixel/Image
Author
LevelPixel (Account age: 647days)
Extension
ComfyUI Level Pixel
Latest Updated
2026-02-24
Github Stars
0.03K

How to Install ComfyUI Level Pixel

Install this extension via the ComfyUI Manager by searching for ComfyUI Level Pixel
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Level Pixel 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Overlay [LP] Description

Overlays images with options for resizing, rotating, opacity, and masking for complex compositions.

Image Overlay [LP]| Image Overlay [LP]:

The ImageOverlay| Image Overlay [LP] node is designed to seamlessly overlay one image onto another, providing a versatile tool for image composition. This node allows you to place an overlay image on top of a base image with precision, offering options to resize, rotate, and adjust the opacity of the overlay. It supports the use of masks to define transparent areas, enabling complex compositions where parts of the overlay can be selectively hidden. The node is particularly beneficial for creating layered visual effects, enhancing images with additional graphics, or combining multiple images into a cohesive artwork. By offering various resizing methods and the ability to apply transformations like rotation and opacity adjustments, ImageOverlay| Image Overlay [LP] empowers you to achieve the desired visual outcome with ease and flexibility.

Image Overlay [LP]| Image Overlay [LP] Input Parameters:

base_image

The base image is the primary image onto which the overlay will be applied. It serves as the canvas for the overlay operation. The quality and resolution of the base image can affect the final output, so it's important to choose an appropriate base image for your project.

overlay_image

This is the image that will be overlaid onto the base image. The overlay image can be resized, rotated, and have its opacity adjusted to fit the desired composition. The choice of overlay image will significantly impact the visual result, so select an image that complements the base image.

overlay_resize

This parameter determines how the overlay image is resized before being applied. Options include "None" for no resizing, "Fit" to scale the overlay to fit within the base image dimensions, "Resize by rescale_factor" to scale by a specific factor, and "Resize to width & height" to set specific dimensions. The choice here affects how the overlay image aligns with the base image.

resize_method

Specifies the method used for resizing the overlay image. Common methods include nearest-neighbor, bilinear, and bicubic interpolation. The method chosen can affect the quality and smoothness of the resized image.

rescale_factor

A numerical factor used to scale the overlay image when "Resize by rescale_factor" is selected. This allows for proportional resizing based on the original dimensions of the overlay image.

width

Defines the target width for the overlay image when "Resize to width & height" is selected. This parameter, along with height, sets the exact dimensions for the overlay.

height

Defines the target height for the overlay image when "Resize to width & height" is selected. This parameter, along with width, sets the exact dimensions for the overlay.

x_offset

The horizontal offset in pixels where the overlay image will be placed on the base image. This allows for precise positioning of the overlay.

y_offset

The vertical offset in pixels where the overlay image will be placed on the base image. This allows for precise positioning of the overlay.

rotation

Specifies the angle in degrees to rotate the overlay image. Rotation can be used to align the overlay with specific elements of the base image or to create dynamic compositions.

opacity

Determines the transparency level of the overlay image, expressed as a percentage. A lower opacity makes the overlay more transparent, allowing more of the base image to show through.

optional_mask

An optional parameter that allows you to apply a mask to the overlay image. The mask defines areas of transparency, enabling complex compositions where parts of the overlay can be selectively hidden.

Image Overlay [LP]| Image Overlay [LP] Output Parameters:

image

The resulting image after the overlay has been applied to the base image. This output reflects all transformations, including resizing, rotation, and opacity adjustments, providing the final composed image.

mask

The mask used in the overlay process, if any. This output can be useful for further processing or for understanding how the overlay was applied.

optional_context_mask

An additional mask that may be used for context-specific operations. This output is optional and depends on the specific use case and configuration of the node.

Image Overlay [LP]| Image Overlay [LP] Usage Tips:

  • Use the "Fit" option in overlay_resize to ensure the overlay image scales proportionally to fit within the base image dimensions without distortion.
  • Adjust the opacity parameter to blend the overlay image smoothly with the base image, creating subtle effects or emphasizing certain elements.
  • Utilize the optional_mask to create complex compositions by selectively hiding parts of the overlay image, allowing for creative and dynamic designs.

Image Overlay [LP]| Image Overlay [LP] Common Errors and Solutions:

Overlay image size mismatch

  • Explanation: This error occurs when the overlay image dimensions do not match the expected size after resizing.
  • Solution: Ensure that the overlay_resize parameter is set correctly and that the overlay image is resized to the appropriate dimensions before applying it.

Invalid mask dimensions

  • Explanation: The mask provided does not match the dimensions of the overlay image.
  • Solution: Resize the mask to match the overlay image dimensions to ensure proper application of transparency.

Opacity value out of range

  • Explanation: The opacity value is set outside the acceptable range (0-100).
  • Solution: Adjust the opacity parameter to a value between 0 and 100 to ensure proper transparency settings.

Image Overlay [LP] Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Level Pixel
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Image Overlay [LP]