Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate customizable image masks for AI art and image manipulation with precise control over dimensions and placement.
The GR Mask Create node is designed to generate a mask for image processing tasks, particularly useful in AI art and image manipulation. This node allows you to create a mask with a specified width and position within an image, providing a transparent area that can be used for various artistic effects or image segmentation purposes. By defining the height, width, mask width, and position percentage, you can precisely control the mask's dimensions and placement, making it a versatile tool for customizing image masks to fit your creative needs.
The height parameter specifies the height of the mask in pixels. It determines the vertical dimension of the mask and must be an integer value greater than or equal to 1. This parameter is crucial as it defines the overall size of the mask along the vertical axis.
The width parameter specifies the width of the mask in pixels. It determines the horizontal dimension of the mask and must be an integer value greater than or equal to 1. This parameter is essential for defining the overall size of the mask along the horizontal axis.
The mask_width parameter defines the width of the transparent area within the mask as a fraction of the total width. It is a float value ranging from 0 to 1, where 0 means no transparent area and 1 means the entire width is transparent. This parameter allows you to control how much of the image will be masked.
The position_percentage parameter specifies the starting position of the transparent area within the mask as a fraction of the total width. It is a float value ranging from 0 to 1, where 0 means the transparent area starts at the left edge and 1 means it starts at the right edge. This parameter helps you position the transparent area precisely within the image.
The MASK output parameter is the generated mask based on the specified input parameters. It is a tensor with the same height and width as defined in the input, containing a transparent area as specified by the mask_width and position_percentage parameters. This mask can be used in various image processing tasks to isolate or highlight specific regions of an image.
© Copyright 2024 RunComfy. All Rights Reserved.