Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

AILab_ImageStitch

AILab_ImageStitch Node Documentation

Overview

The AILab_ImageStitch node in the ComfyUI-RMBG repository provides a versatile tool for combining multiple images into a single image canvas. This functionality is crucial for tasks that require laying out images in a side-by-side or top-down manner, such as creating collages, composite images, or visual comparisons.

Features

  • Directional Stitching: Allows for horizontal or vertical stitching of images.
  • Resize Matching: Automatically resizes the second image to match the dimensions of the first image if needed.
  • Spacing and Background: Includes adjustable spacing between images with customizable background color.
  • Special Layout (Kontext Mode): A unique arrangement that positions the second and third images in a specific configuration.

Inputs

  • Image1: The first image to form the base of the stitched output.
  • Image2 (Optional): A second image to be stitched together with the first image.
  • Image3 (Optional): A third image used in "kontext_mode" to create a specialized layout.
  • Direction: Specifies the stitching orientation (right, down, left, up, kontext_mode).
  • Match Image Size: A boolean option to resize the second image to match the first image's dimensions.
  • Max Width: Defines the maximum allowable width for the resulting stitched image.
  • Max Height: Defines the maximum allowable height for the resulting stitched image.
  • Spacing Width: Determines the width of the spacing between images.
  • Background Color: Sets the color used for spacing and to fill the padding areas.

Outputs

  • Image: The final stitched image output that combines the provided images in the specified configuration.

Usage in ComfyUI Workflows

The AILab_ImageStitch node can be easily integrated into ComfyUI workflows to:

  1. Create Composite Images: Combine multiple images into one image to create collages or visual layouts.
  2. Image Comparisons: Stitch images side by side for comparison, useful in design and review processes.
  3. Customized Storyboards: Utilize "kontext_mode" to create specialized layouts for storyboards or visual content where arrangement and comparison are essential.
  4. Functional Prototypes: Develop quick prototypes for UI and UX designs by combining various image assets.

Special Features and Considerations

  • Kontext Mode: This mode is particularly useful when you have three images and want to layout two images vertically with a third one adjacent on the right, creating a specific comparison or storyboard effect.
  • Size and Aspect Ratio Management: The node provides intelligent downscaling options to ensure that the combined output fits within specified dimensions, maintaining the visual quality of images.
  • Color Customization: The ability to set the background color of spaces and padding allows for a seamless blend with existing design settings, making it ideal for workflows where aesthetics are crucial.

In conclusion, the AILab_ImageStitch node is an essential utility within the ComfyUI-RMBG suite, catering to various creative and functional image stitching needs, making it adaptable for both simple and complex design projects.