ComfyUI Node
Simple Crop to Mask (with Padding) ⚡
A ComfyUI node in Texture Alchemist/Inpainting/Simple with 7 inputs and 5 outputs.
Simple Crop to Mask (with Padding) ⚡
- image
- mask
- cropped_image
- cropped_mask
- masked_composite
- bbox_data
- info
◄padding50►
◄pad_to_squarefalse►
◄padding_colorblack►
◄custom_color#000000►
◄invert_maskfalse►
CategoryTexture Alchemist/Inpainting/Simple
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| padding | INT | 500–500 | Padding in pixels (expands canvas) |
| pad_to_square | BOOLEAN | false | Expand to square canvas (uses longest dimension) |
| padding_color | COMBO | black | use_image (with pad to square): square crop from the full input, centered on the mask. Other: from_crop/edge/mirror from tight crop; black/white/average/custom = solid/avg |
| custom_color | STRING | #000000 | Hex color for custom padding (e.g., #FF5733) |
| invert_mask | BOOLEAN | false | Invert mask (swap black/white) |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| cropped_image | IMAGE | — |
| cropped_mask | MASK | — |
| masked_composite | IMAGE | — |
| bbox_data | BBOX_DATA | — |
| info | STRING | — |