ComfyUI > Nodes > Comfyui_LG_Tools > 🎈FastCanvasComposite

ComfyUI Node: 🎈FastCanvasComposite

Class Name

FastCanvasComposite

Category
🎈LAOGOU/Canvas
Author
LAOGOU-666 (Account age: 442days)
Extension
Comfyui_LG_Tools
Latest Updated
2025-06-06
Github Stars
0.08K

How to Install Comfyui_LG_Tools

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

🎈FastCanvasComposite Description

Facilitates seamless integration of images and masks for complex compositions with transformation and mask inversion capabilities.

🎈FastCanvasComposite:

The FastCanvasComposite node is designed to facilitate the seamless integration of multiple images and masks into a single composite image. This node is particularly useful for AI artists who want to layer different visual elements together, allowing for complex image compositions with ease. By leveraging transformation data and mask inversion capabilities, it provides a flexible and efficient way to manipulate and combine images. The node's primary goal is to streamline the process of image compositing, making it accessible even to those without a deep technical background. It ensures that the resulting composite image maintains high quality and adheres to the specified transformations, offering a robust solution for creative image manipulation.

🎈FastCanvasComposite Input Parameters:

bg_img

The bg_img parameter represents the background image onto which other images and masks will be composited. It serves as the base layer of the composite image, providing the foundational visual context. This parameter is crucial as it determines the overall dimensions and initial visual content of the composite. The image should be in RGB format to ensure compatibility with the compositing process.

image

The image parameter is the foreground image that will be layered onto the background image. This parameter allows you to add additional visual elements to the composite, enabling the creation of complex and detailed images. The image should also be in RGB format to ensure proper blending and color consistency with the background.

mask

The mask parameter is used to define the areas of the foreground image that should be visible in the composite. It acts as a stencil, allowing you to selectively reveal or hide parts of the foreground image. The mask is typically a binary image where white areas represent visible regions and black areas represent hidden regions. This parameter is essential for precise control over the compositing process.

transform_data

The transform_data parameter contains information about any transformations that should be applied to the foreground image before compositing. This can include scaling, rotation, translation, and other geometric transformations. By providing this data, you can ensure that the foreground image is positioned and oriented correctly within the composite, allowing for creative and dynamic compositions.

invert_mask

The invert_mask parameter is a boolean option that determines whether the mask should be inverted before being applied. When set to True, the mask's white and black areas are swapped, effectively reversing the visible and hidden regions of the foreground image. This option provides additional flexibility in controlling the compositing process, allowing for creative effects and adjustments.

mode

The mode parameter is a boolean option that toggles a specific compositing mode, labeled as "HD Restore." When enabled, this mode may apply additional processing to enhance the quality of the composite image, particularly in high-definition scenarios. This parameter allows you to optimize the compositing process for different output requirements, ensuring the best possible visual results.

🎈FastCanvasComposite Output Parameters:

image

The image output parameter is the final composite image resulting from the layering of the background and foreground images, along with the application of the mask and any specified transformations. This output represents the culmination of the compositing process, providing a visually cohesive and complete image that incorporates all specified elements.

mask

The mask output parameter is the final mask used in the compositing process. It reflects any transformations or inversions applied during the process, providing a record of the areas that were visible in the final composite image. This output can be useful for further processing or analysis of the composite.

transform_data

The transform_data output parameter contains the transformation data that was applied to the foreground image during the compositing process. This output provides a record of the geometric adjustments made to the image, allowing for reproducibility and further manipulation if needed.

🎈FastCanvasComposite Usage Tips:

  • Ensure that all input images are in RGB format to avoid color inconsistencies in the composite.
  • Use the invert_mask parameter creatively to achieve unique visual effects by reversing the visible and hidden areas of the foreground image.
  • Experiment with the transform_data parameter to explore different geometric transformations and enhance the dynamic nature of your compositions.

🎈FastCanvasComposite Common Errors and Solutions:

Error in array_to_tensor

  • Explanation: This error occurs when there is an issue converting an image or mask to a tensor format, possibly due to incorrect data types or image modes.
  • Solution: Ensure that all input images and masks are in the correct format and data type, specifically RGB for images and binary for masks.

Missing node_id

  • Explanation: This error indicates that a required node identifier is missing, preventing the node from being properly registered or processed.
  • Solution: Verify that the node_id is correctly specified and passed to the node during execution.

Processing failed

  • Explanation: This error occurs when an exception is raised during the compositing process, potentially due to invalid input data or unexpected conditions.
  • Solution: Check the input parameters for correctness and ensure that all required data is provided. Review any error messages for specific details on the issue.

🎈FastCanvasComposite Related Nodes

Go back to the extension to check out more related nodes.
Comfyui_LG_Tools
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 Playground, enabling artists to harness the latest AI tools to create incredible art.