> ## 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.

# ImageCompositeMasked - ComfyUI Built-in Node Documentation

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

The `ImageCompositeMasked` node is designed for compositing images, allowing for the overlay of a source image onto a destination image at specified coordinates, with optional resizing and masking.

## Inputs

| Parameter       | Description                                                                                                                                                                                                 | Data Type |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `destination`   | The destination image onto which the source image will be composited. It serves as the background for the composite operation.                                                                              | `IMAGE`   |
| `source`        | The source image to be composited onto the destination image. This image can optionally be resized to fit the destination image's dimensions.                                                               | `IMAGE`   |
| `x`             | The x-coordinate in the destination image where the top-left corner of the source image will be placed.                                                                                                     | `INT`     |
| `y`             | The y-coordinate in the destination image where the top-left corner of the source image will be placed.                                                                                                     | `INT`     |
| `resize_source` | A boolean flag indicating whether the source image should be resized to match the destination image's dimensions.                                                                                           | `BOOLEAN` |
| `mask`          | An optional mask that specifies which parts of the source image should be composited onto the destination image. This allows for more complex compositing operations, such as blending or partial overlays. | `MASK`    |

## Outputs

| Parameter | Description                                                                            | Data Type |
| --------- | -------------------------------------------------------------------------------------- | --------- |
| `image`   | The resulting image after the compositing operation, which combines elements of both t | `IMAGE`   |

> 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/ImageCompositeMasked/en.md)
