> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CropMask - ComfyUI Built-in Node Documentation

> Complete documentation for the CropMask node in ComfyUI. Learn its inputs, outputs, parameters and usage.

The CropMask node is designed for cropping a specified area from a given mask. It allows users to define the region of interest by specifying coordinates and dimensions, effectively extracting a portion of the mask for further processing or analysis.

## Inputs

| Parameter | Description                                                                                                                                                      | Data Type |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `mask`    | The mask input represents the mask image to be cropped. It is essential for defining the area to be extracted based on the specified coordinates and dimensions. | MASK      |
| `x`       | The x coordinate specifies the starting point on the horizontal axis from which the cropping should begin.                                                       | INT       |
| `y`       | The y coordinate determines the starting point on the vertical axis for the cropping operation.                                                                  | INT       |
| `width`   | Width defines the horizontal extent of the crop area from the starting point.                                                                                    | INT       |
| `height`  | Height specifies the vertical extent of the crop area from the starting point.                                                                                   | INT       |

## Outputs

| Parameter | Description                                                                                                                | Data Type |
| --------- | -------------------------------------------------------------------------------------------------------------------------- | --------- |
| `mask`    | The output is a cropped mask, which is a portion of the original mask defined by the specified coordinates and dimensions. | MASK      |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/CropMask/en.md)
