ComfyUI > Nodes > Mikey Nodes > Image Overlay (Mikey)

ComfyUI Node: Image Overlay (Mikey)

Class Name

ImageOverlay

Category
Mikey/Image
Author
bash-j (Account age: 4196days)
Extension
Mikey Nodes
Latest Updated
2024-06-15
Github Stars
0.08K

How to Install Mikey Nodes

Install this extension via the ComfyUI Manager by searching for Mikey Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Mikey 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

Image Overlay (Mikey) Description

Overlay foreground image seamlessly on background with automatic resizing/cropping, opacity control for creative blending effects.

Image Overlay (Mikey):

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.

Image Overlay (Mikey) Input Parameters:

background_image

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.

foreground_image

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.

opacity

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.

Image Overlay (Mikey) Output Parameters:

result_img

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.

Image Overlay (Mikey) Usage Tips:

  • To achieve a subtle texture effect, use a low opacity value (e.g., 0.1 to 0.3) for the foreground image.
  • Ensure both input images are of high quality to avoid pixelation or blurriness in the resulting composite image.
  • Experiment with different foreground images and opacity levels to create unique visual effects and enhance your artwork.

Image Overlay (Mikey) Common Errors and Solutions:

Invalid image format

  • Explanation: The input images are not in a compatible format or cannot be processed.
  • Solution: Ensure that both the background and foreground images are in a standard format such as JPEG or PNG and are not corrupted.

Mismatched image dimensions

  • Explanation: The foreground image cannot be resized or cropped to match the background image dimensions.
  • Solution: Verify that the input images are correctly loaded and that the foreground image can be resized or cropped without issues.

Opacity value out of range

  • Explanation: The opacity value provided is outside the acceptable range of 0.0 to 1.0.
  • Solution: Adjust the opacity value to be within the range of 0.0 to 1.0 to ensure proper blending of the images.

Image Overlay (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey 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.