ComfyUI > Nodes > ComfyUI 1hewNodes > Image Grid Split

ComfyUI Node: Image Grid Split

Class Name

1hew_ImageGridSplit

Category
1hewNodes/image/crop
Author
1hew (Account age: 1113days)
Extension
ComfyUI 1hewNodes
Latest Updated
2026-04-17
Github Stars
0.03K

How to Install ComfyUI 1hewNodes

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

Image Grid Split Description

Divides an image into a grid of sub-images for targeted editing and efficient management.

Image Grid Split:

The 1hew_ImageGridSplit node is designed to divide an image into a grid of smaller sub-images based on specified rows and columns. This node is particularly useful for artists and designers who need to process or analyze different sections of an image independently. By splitting an image into a grid, you can focus on specific areas for detailed editing, apply different effects to each section, or simply manage large images more efficiently. The node's primary function is to facilitate the segmentation of images into manageable parts, enhancing your workflow by allowing for targeted modifications and analysis.

Image Grid Split Input Parameters:

image

This parameter represents the input image that you want to split into a grid. It is the primary data that the node processes, and its quality and resolution will directly affect the output sub-images.

rows

The rows parameter determines the number of horizontal divisions in the grid. It specifies how many rows the image will be split into, with a minimum value of 1 and a maximum of 10. The default value is set to 2. Increasing the number of rows will result in smaller sub-images, allowing for more detailed segmentation.

columns

Similar to the rows parameter, columns specifies the number of vertical divisions in the grid. It defines how many columns the image will be split into, with a minimum value of 1 and a maximum of 10. The default value is 2. Adjusting the number of columns changes the width of each sub-image, providing flexibility in how the image is divided.

index

The index parameter allows you to select a specific sub-image from the grid. It ranges from -100 to 100, with a default value of 0. This parameter is useful when you want to focus on a particular section of the grid without processing the entire image. A negative index can be used to select sub-images from the end of the grid.

all

The all parameter is a boolean that determines whether all sub-images should be output or just a single one specified by the index. When set to True, all sub-images are processed and output. If set to False, only the sub-image at the specified index is output. This provides flexibility in processing either the entire grid or a specific section.

Image Grid Split Output Parameters:

image

The output is a collection of sub-images resulting from the grid split operation. Each sub-image corresponds to a section of the original image as defined by the rows and columns parameters. If the all parameter is set to True, all sub-images are included in the output; otherwise, only the sub-image at the specified index is provided. These sub-images can be used for further processing or analysis.

Image Grid Split Usage Tips:

  • To achieve a detailed analysis of specific image sections, increase the number of rows and columns to create smaller sub-images.
  • Use the index parameter to focus on a particular sub-image when you only need to process or edit a specific part of the grid.
  • Set the all parameter to True if you need to apply a uniform effect or analysis across all sections of the image.

Image Grid Split Common Errors and Solutions:

"Invalid image input"

  • Explanation: This error occurs when the input image is not in the correct format or is corrupted.
  • Solution: Ensure that the input image is a valid and supported format, and check for any corruption in the file.

"Index out of range"

  • Explanation: The specified index is outside the range of available sub-images.
  • Solution: Adjust the index parameter to fall within the valid range based on the number of rows and columns specified.

"Rows or columns value out of bounds"

  • Explanation: The rows or columns parameter is set outside the allowed range of 1 to 10.
  • Solution: Ensure that both rows and columns are set within the specified range to avoid this error.

Image Grid Split Related Nodes

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

Image Grid Split