Nodes/ComfyUI-TextureAlchemy/Simple Crop to Mask (with Padding) ⚡
ComfyUI Node

Simple Crop to Mask (with Padding) ⚡

A ComfyUI node in Texture Alchemist/Inpainting/Simple with 7 inputs and 5 outputs.

By amtarr·Created 8 months ago·Updated 4 months ago· 54
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)

NameTypeDefaultDescription
imageIMAGE
maskMASK
paddingINT500–500Padding in pixels (expands canvas)
pad_to_squareBOOLEANfalseExpand to square canvas (uses longest dimension)
padding_colorCOMBOblackuse_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_colorSTRING#000000Hex color for custom padding (e.g., #FF5733)
invert_maskBOOLEANfalseInvert mask (swap black/white)

Outputs (5)

NameTypeDescription
cropped_imageIMAGE
cropped_maskMASK
masked_compositeIMAGE
bbox_dataBBOX_DATA
infoSTRING