Nodes/ComfyUI-Image-Resizing/Mask Crop By Percentage
ComfyUI Node

Mask Crop By Percentage

A ComfyUI node in Image Resizing/Resizing with 11 inputs and 4 outputs.

By Zar4X·Created about a year ago·Updated 4 months ago· 3
Mask Crop By Percentage
  • image
  • mask
  • crop_box
  • cropped_image
  • cropped_mask
  • crop_box
  • box_preview
invert_maskfalse
use_pixelfalse
detect
top0
bottom0
left0
right0
round_to_multiple
CategoryImage Resizing/Resizing

Inputs (11)

NameTypeDefaultDescription
imageIMAGE
maskMASK
invert_maskBOOLEANfalse
use_pixelBOOLEANfalse
detectCOMBO4 options: mask_area, min_bounding_rect, max_inscribed_rect, crop_each_region
topINT00–9999
bottomINT00–9999
leftINT00–9999
rightINT00–9999
round_to_multipleCOMBO8 options: 8, 16, 32, 64, 128, 256, +2
crop_boxoptBOX

Outputs (4)

NameTypeDescription
cropped_imageIMAGE
cropped_maskMASK
crop_boxBOX
box_previewIMAGE