ComfyUI > Nodes > ComfyUI_Mira > Create Tilling PNG Mask

ComfyUI Node: Create Tilling PNG Mask

Class Name

CreateTillingPNGMask

Category
Mira/Mask
Author
mirabarukaso (Account age: 1261days)
Extension
ComfyUI_Mira
Latest Updated
2024-07-25
Github Stars
0.03K

How to Install ComfyUI_Mira

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

Create Tilling PNG Mask Description

Generate tiled PNG image with color mask stack for regional conditioning, simplifying creation of region-specific masks for AI artists.

Create Tilling PNG Mask:

The CreateTillingPNGMask node is designed to generate a tiled PNG image along with a color mask stack for regional conditioning. This node is particularly useful for AI artists who need to create complex, region-specific masks for their artwork. By specifying the dimensions and layout of the tiles, you can create a structured and organized mask that can be used for various artistic effects and conditioning tasks. The node simplifies the process of creating these masks by automating the generation of the image and its corresponding color and rectangle information, making it easier to apply regional effects in your projects.

Create Tilling PNG Mask Input Parameters:

Width

The Width parameter specifies the width of the resulting PNG image. This value determines how wide the final image will be, and it is essential for defining the overall dimensions of your tiled mask. The width should be set according to the specific requirements of your project.

Height

The Height parameter defines the height of the resulting PNG image. Similar to the width, this value determines the vertical dimension of the final image. Setting the height appropriately ensures that the image fits the intended design and layout.

Rows

The Rows parameter indicates the number of rows in the tiled layout. This parameter is of lower priority and is only considered when the Layout parameter is incorrect. It helps in structuring the image into multiple horizontal sections.

Colums

The Colums parameter specifies the number of columns in the tiled layout. Like the Rows parameter, it is of lower priority and is used when the Layout parameter is not set correctly. This parameter helps in dividing the image into vertical sections.

Colum_first

The Colum_first parameter is a boolean trigger that, when enabled, treats the default cut as a horizontal cut. This means that the image will be divided into columns first before rows, affecting the overall layout of the tiles.

Layout

The Layout parameter defines the specific arrangement of the tiles in the image. It is a string that should be set according to the guidelines provided in the Readme.md file at https://github.com/mirabarukaso/ComfyUI_Mira. This parameter has the highest priority and overrides the Rows and Colums parameters if set correctly.

Create Tilling PNG Mask Output Parameters:

PngImage

The PngImage output is the generated PNG image based on the specified width, height, and layout parameters. This image contains the tiled layout as defined by the input parameters.

PngColorMasks

The PngColorMasks output is a list that contains the color information for each block in the PNG image. This list is useful for applying regional conditioning based on the colors of the tiles.

PngRectangles

The PngRectangles output is a list that contains the rectangle information for each block in the PNG image. The last entry in this list represents the width and height of the entire image. This information is crucial for understanding the spatial arrangement of the tiles.

DebugMessage

The DebugMessage output provides debug information that can be useful for troubleshooting and understanding the internal workings of the node. It contains messages that can help identify issues or confirm the successful execution of the node.

Create Tilling PNG Mask Usage Tips:

  • Ensure that the Width and Height parameters are set according to the desired dimensions of your final image to avoid unexpected results.
  • Use the Layout parameter to define the specific arrangement of tiles, as it has the highest priority and can override the Rows and Colums settings.
  • Enable the Colum_first parameter if you want the image to be divided into columns first, which can be useful for certain artistic effects.

Create Tilling PNG Mask Common Errors and Solutions:

"Invalid Layout Parameter"

  • Explanation: The Layout parameter is not set correctly or does not match the expected format.
  • Solution: Refer to the Readme.md file at https://github.com/mirabarukaso/ComfyUI_Mira for the correct format and examples of valid layout strings.

"Width or Height Not Set"

  • Explanation: The Width or Height parameter is missing or set to an invalid value.
  • Solution: Ensure that both the Width and Height parameters are specified and set to appropriate values for your project.

"Rows or Colums Parameter Ignored"

  • Explanation: The Rows or Colums parameter is ignored because the Layout parameter is set correctly.
  • Solution: This is not an error but a reminder that the Layout parameter takes precedence. If you want to use Rows and Colums, ensure the Layout parameter is not set or is incorrect.

Create Tilling PNG Mask Related Nodes

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