ComfyUI  >  Nodes  >  ComfyUI-Text_Image-Composite [WIP] >  ImageComposite_Zho

ComfyUI Node: ImageComposite_Zho

Class Name

ImageComposite_Zho

Category
Zho模块组/image
Author
ZHO-ZHO-ZHO (Account age: 340 days)
Extension
ComfyUI-Text_Image-Composite [WIP]
Latest Updated
5/31/2024
Github Stars
0.1K

How to Install ComfyUI-Text_Image-Composite [WIP]

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

ImageComposite_Zho Description

Facilitates seamless blending of two images with control over transparency and placement for creating complex image compositions.

ImageComposite_Zho:

The ImageComposite_Zho node is designed to facilitate the seamless combination of two images into a single composite image. This node allows you to position and blend two images (images_a and images_b) within a specified container, providing control over their transparency and placement. The primary goal of this node is to enable the creation of complex image compositions with ease, making it a valuable tool for AI artists looking to merge visual elements creatively. By adjusting parameters such as the position, transparency, and background, you can achieve a wide range of visual effects, from simple overlays to intricate image matrices.

ImageComposite_Zho Input Parameters:

images_a

This parameter represents the first image to be used in the composite. It is an essential input and must be provided for the node to function.

images_b

This parameter represents the second image to be used in the composite. Like images_a, it is a required input.

alpha_a

This parameter controls the transparency of images_a. It accepts a float value ranging from 0.0 (completely transparent) to 1.0 (completely opaque), with a default value of 1.0. Adjusting this parameter allows you to blend images_a with the background and images_b.

alpha_b

This parameter controls the transparency of images_b. It accepts a float value ranging from 0.0 to 1.0, with a default value of 1.0. This parameter helps in blending images_b with the background and images_a.

images_a_x

This parameter specifies the horizontal position of images_a within the container. It accepts a float value between 0.0 and 1.0, with a default value of 0.0. The value represents the percentage offset from the left edge of the container.

images_a_y

This parameter specifies the vertical position of images_a within the container. It accepts a float value between 0.0 and 1.0, with a default value of 0.0. The value represents the percentage offset from the top edge of the container.

images_b_x

This parameter specifies the horizontal position of images_b within the container. It accepts a float value between 0.0 and 1.0, with a default value of 0.0. The value represents the percentage offset from the left edge of the container.

images_b_y

This parameter specifies the vertical position of images_b within the container. It accepts a float value between 0.0 and 1.0, with a default value of 0.0. The value represents the percentage offset from the top edge of the container.

background

This parameter determines which image (images_a or images_b) will serve as the background for the composite. It accepts either images_a or images_b.

method

This parameter defines the method of compositing the images. It accepts either pair or matrix, allowing you to choose between a simple overlay or a more complex matrix arrangement.

ImageComposite_Zho Output Parameters:

IMAGE

The output of the ImageComposite_Zho node is a single composite image that combines images_a and images_b based on the specified parameters. This composite image reflects the positioning, transparency, and background settings applied, resulting in a unified visual output.

ImageComposite_Zho Usage Tips:

  • To create a simple overlay effect, set method to pair and adjust the alpha_a and alpha_b parameters to blend the images smoothly.
  • For more complex compositions, use the matrix method and experiment with different images_a_x, images_a_y, images_b_x, and images_b_y values to achieve the desired layout.
  • Utilize the background parameter to determine which image should serve as the base layer, providing a foundation for the composite.

ImageComposite_Zho Common Errors and Solutions:

Container can't be smaller than max width or height of images.

  • Explanation: This error occurs when the container size is smaller than the maximum width or height of the input images.
  • Solution: Ensure that the container dimensions are large enough to accommodate the largest input image. Adjust the container size or resize the input images accordingly.

Invalid value for alpha_a or alpha_b.

  • Explanation: This error occurs when the transparency values for alpha_a or alpha_b are outside the acceptable range (0.0 to 1.0).
  • Solution: Verify that the alpha_a and alpha_b parameters are set within the range of 0.0 to 1.0. Adjust the values to fall within this range.

Invalid method specified.

  • Explanation: This error occurs when an unsupported method is specified for the method parameter.
  • Solution: Ensure that the method parameter is set to either pair or matrix. Double-check the spelling and case of the method value.

ImageComposite_Zho Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Text_Image-Composite [WIP]
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.