ComfyUI Node

Polygon Mask

Load an image, edit closed polygon overlays, and output the composited image, raw polygon mask, and panel text.

By TeutonicMepheles·Created 2 months ago·Updated 11 days ago· 0
Polygon Mask
  • image
  • color
  • masked_image
  • raw_mask
  • text
vertex_count3
fill_opacity35
outline_width3
polygon_data
text
Categoryimage/polygon

Inputs (7)

NameTypeDefaultDescription
imageIMAGE
vertex_countINT33–50
colorCOLOR#FF0000
fill_opacityINT350–100
outline_widthINT30–20
polygon_dataSTRINGInternal polygon state managed by the Polygon Mask editor.
textSTRINGMultiline text passed through to the text output.

Outputs (3)

NameTypeDescription
masked_imageIMAGE
raw_maskMASK
textSTRING