Nodes/Image Misc/Resize Mask (KJ/SET)
ComfyUI Node

Resize Mask (KJ/SET)

Resizes the mask or batch of masks to the specified width and height.

By set-soft·Created about a year ago·Updated 7 months ago· 2
Resize Mask (KJ/SET)
  • mask
  • get_image_size
  • mask
  • width
  • height
width512
height512
keep_proportionsfalse
upscale_methodnearest-exact
crop
Categoryimage/manipulation

Inputs (7)

NameTypeDefaultDescription
maskMASK
widthINT5120–16384Used when no `get_image_size` is provided
heightINT5120–16384Used when no `get_image_size` is provided
keep_proportionsBOOLEANfalse
upscale_methodCOMBOnearest-exactInterpolation method for image resize
cropCOMBO2 options: disabled, center
get_image_sizeoptIMAGEImage size to use as reference

Outputs (3)

NameTypeDescription
maskMASK
widthINT
heightINT