ComfyUI > Nodes > ComfyUI-YCNodes_Toolkit > Load Image Brush Mask

ComfyUI Node: Load Image Brush Mask

Class Name

ycimagebrushmask

Category
YCNode/utils
Author
yichengup (Account age: 774days)
Extension
ComfyUI-YCNodes_Toolkit
Latest Updated
2026-03-23
Github Stars
0.05K

How to Install ComfyUI-YCNodes_Toolkit

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

Load Image Brush Mask Description

Facilitates precise image mask creation using customizable brush strokes for digital art.

Load Image Brush Mask:

The ycimagebrushmask node is designed to facilitate the creation and manipulation of image masks using brush strokes. This node is particularly useful for AI artists who need to apply precise and customizable masking techniques to their digital artworks. By leveraging brush strokes, you can define specific areas of an image to be masked, allowing for detailed control over which parts of the image are affected by subsequent processing steps. The node supports various brush attributes such as size, opacity, and color, enabling you to tailor the mask to your artistic needs. The primary goal of this node is to provide a flexible and intuitive way to create masks that can enhance the creative process, making it easier to isolate and manipulate specific image regions.

Load Image Brush Mask Input Parameters:

mode

The mode parameter determines the operational mode of the brush, which can affect how the mask is applied to the image. While the default mode is set to 'brush', this parameter allows for potential customization in future updates or different implementations. The mode influences the behavior of the brush strokes, such as whether they add to or subtract from the mask.

size

The size parameter specifies the diameter of the brush in pixels. This parameter directly impacts the area covered by each brush stroke, with larger sizes covering more area and smaller sizes allowing for finer detail. The default value is typically set to a standard size that balances detail and coverage, but it can be adjusted to suit specific artistic requirements.

opacity

The opacity parameter controls the transparency level of the brush strokes applied to the mask. Although the backend may not utilize this parameter directly, it is parsed to maintain compatibility with other systems. Opacity values range from 0 (completely transparent) to 1 (completely opaque), allowing you to create masks with varying levels of transparency.

r,g,b

The r,g,b parameters represent the color of the brush strokes in terms of red, green, and blue components. These parameters allow you to define the color of the mask, which can be useful for visualizing different mask regions or for compatibility with systems that interpret mask colors differently.

points

The points parameter is a collection of coordinates that define the path of the brush strokes on the image. This parameter is crucial for determining the exact placement and shape of the mask, as it specifies where the brush strokes are applied. The points are typically parsed and processed in bulk to optimize performance and reduce computational overhead.

Load Image Brush Mask Output Parameters:

mask

The mask output parameter is a numpy array representing the final mask generated by the brush strokes. This mask can be used in subsequent image processing steps to isolate or modify specific regions of the image. The mask's values indicate the degree to which each pixel is affected by the mask, with higher values representing stronger masking effects.

Load Image Brush Mask Usage Tips:

  • Experiment with different brush sizes and opacities to achieve the desired level of detail and transparency in your masks. Larger brushes can quickly cover large areas, while smaller brushes allow for precision work.
  • Use the color parameters to differentiate between multiple masks or to create masks that are compatible with specific color-based processing workflows.

Load Image Brush Mask Common Errors and Solutions:

Invalid brush size

  • Explanation: The brush size specified is either too large or too small for the image dimensions.
  • Solution: Ensure that the brush size is within a reasonable range relative to the image size. Adjust the size parameter to fit the scale of your image.

Points out of bounds

  • Explanation: Some of the points specified for the brush strokes fall outside the image boundaries.
  • Solution: Verify that all points are within the image dimensions. Adjust the coordinates to ensure they are within the valid range of the image's width and height.

Load Image Brush Mask Related Nodes

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

Load Image Brush Mask