ComfyUI  >  Nodes  >  MTB Nodes >  Stack Images (mtb)

ComfyUI Node: Stack Images (mtb)

Class Name

Stack Images (mtb)

Category
mtb/image utils
Author
melMass (Account age: 3754 days)
Extension
MTB Nodes
Latest Updated
7/2/2024
Github Stars
0.3K

How to Install MTB Nodes

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

Stack Images (mtb) Description

Combine multiple images into a single image vertically or horizontally for creating collages or composite images with normalized dimensions.

Stack Images (mtb):

The Stack Images (mtb) node is designed to combine multiple images into a single image by stacking them either vertically or horizontally. This node is particularly useful for creating composite images, collages, or any visual representation where multiple images need to be displayed together in a structured manner. By normalizing the input images to a consistent format and ensuring they have compatible dimensions, the node guarantees a seamless stacking process. This functionality is essential for AI artists who want to merge different visual elements into a cohesive output without manually adjusting each image's size and format.

Stack Images (mtb) Input Parameters:

vertical

The vertical parameter determines the direction in which the images will be stacked. When set to True, the images are stacked vertically, one on top of the other. When set to False, the images are stacked horizontally, side by side. This parameter is a boolean value with a default setting of False. The choice of stacking direction impacts the final layout of the composite image, making it crucial to select the appropriate option based on the desired visual outcome.

Stack Images (mtb) Output Parameters:

IMAGE

The output parameter IMAGE represents the final composite image created by stacking the input images. This output is a single image tensor that combines all the provided images in the specified direction (either vertically or horizontally). The resulting image maintains the visual integrity of the individual input images while presenting them in a unified format, making it ready for further processing or display.

Stack Images (mtb) Usage Tips:

  • Ensure that all input images have compatible dimensions (same width for vertical stacking and same height for horizontal stacking) to avoid errors during the stacking process.
  • Use the vertical parameter to control the layout of the stacked images, depending on whether you want a vertical column or a horizontal row of images.
  • Normalize your images to RGBA format before stacking to maintain consistency and avoid unexpected results.

Stack Images (mtb) Common Errors and Solutions:

"At least one tensor must be provided."

  • Explanation: This error occurs when no images are provided as input to the node.
  • Solution: Ensure that you provide at least one image tensor as input to the node.

"All tensors must have the same width for vertical stacking."

  • Explanation: This error occurs when the input images have different widths while attempting to stack them vertically.
  • Solution: Make sure all input images have the same width before stacking them vertically.

"All tensors must have the same height for horizontal stacking."

  • Explanation: This error occurs when the input images have different heights while attempting to stack them horizontally.
  • Solution: Ensure all input images have the same height before stacking them horizontally.

Stack Images (mtb) Related Nodes

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