Nodes/comfy-ovum/LiveCrop
ComfyUI Node

LiveCrop

Visually crop an image with interactive guides. Use sliders or drag the red guides in the node UI to set crop amounts. Negative values crop from that side. Semantics (per side): - crop_top < 0: removes |value|*height from top. - crop_bottom < 0: removes |value|*height from bottom. - crop_left < 0: removes |value|*width from left. - crop_right < 0: removes |value|*width from right. All crop parameters are in the range [-1, 0], representing a fraction of the original dimension.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
LiveCrop
  • image_ex
  • image
  • mask
  • IMAGE_EX
  • image
  • mask
  • BBOX
  • BBOX%
crop_top0.000
crop_bottom0.000
crop_left0.000
crop_right0.000
rotate_degrees0
Categoryovum

Inputs (8)

NameTypeDefaultDescription
crop_topFLOAT0.000-1–0Negative values crop from top.
crop_bottomFLOAT0.000-1–0Negative values crop from bottom.
crop_leftFLOAT0.000-1–0Negative values crop from left.
crop_rightFLOAT0.000-1–0Negative values crop from right.
rotate_degreesINT0-180–180Rotate by multiples of 90 degrees.
image_exoptDICT
imageoptIMAGE
maskoptMASK

Outputs (5)

NameTypeDescription
IMAGE_EXDICT
imageIMAGE
maskMASK
BBOXLIST
BBOX%LIST