ComfyUI Node
Crop to Mask (with Padding)
A ComfyUI node in Texture Alchemist/Texture with 7 inputs and 10 outputs.
Crop to Mask (with Padding)
- image
- mask
- image
- mask
- original_width
- original_height
- bbox_x
- bbox_y
- bbox_width
- bbox_height
- bbox_data
- info
◄padding50►
◄pad_to_squarefalse►
◄padding_colorblack►
◄custom_color#000000►
◄invert_maskfalse►
CategoryTexture Alchemist/Texture
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): crop a square from the full input, centered on the mask—real image pixels, no solid/mirror. Other modes: from_crop/edge/mirror = fill from the tight mask 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 (10)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| original_width | INT | — |
| original_height | INT | — |
| bbox_x | INT | — |
| bbox_y | INT | — |
| bbox_width | INT | — |
| bbox_height | INT | — |
| bbox_data | BBOX_DATA | — |
| info | STRING | — |