Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate tiled PNG image with color mask stack for regional conditioning, simplifying creation of region-specific masks for AI artists.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Width
and Height
parameters are set according to the desired dimensions of your final image to avoid unexpected results.Layout
parameter to define the specific arrangement of tiles, as it has the highest priority and can override the Rows
and Colums
settings.Colum_first
parameter if you want the image to be divided into columns first, which can be useful for certain artistic effects.Layout
parameter is not set correctly or does not match the expected format.Readme.md
file at https://github.com/mirabarukaso/ComfyUI_Mira
for the correct format and examples of valid layout strings.Width
or Height
parameter is missing or set to an invalid value.Width
and Height
parameters are specified and set to appropriate values for your project.Rows
or Colums
parameter is ignored because the Layout
parameter is set correctly.Layout
parameter takes precedence. If you want to use Rows
and Colums
, ensure the Layout
parameter is not set or is incorrect.© Copyright 2024 RunComfy. All Rights Reserved.