> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageCompositeMasked - ComfyUI Built-in Node Documentation

> 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 resi

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)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.