Nodes/ComfyUI-Loop/♾️ Image Crop
ComfyUI Node

♾️ Image Crop

Crop an image and mask at x,y coordinates with given size. Generate image and mask preview for interactive cropping.

By Hullabalo·Created 2 years ago·Updated 7 months ago· 14
♾️ Image Crop
  • image
  • mask
  • source
  • cut
  • size
  • x
  • y
  • cut_mask
x0
y0
size512
colorblack
show_masktrue
CategoryLOOP

Inputs (7)

NameTypeDefaultDescription
imageIMAGE
xINT00–32768x origin of the crop.
yINT00–32768y origin of the crop.
sizeINT512256–2048size of the crop. By 8 pixels increments.
colorCOMBOblackColor of the crop rectangle in the preview.
show_maskBOOLEANtrueShow or hide preview mask
maskoptMASK

Outputs (6)

NameTypeDescription
sourceIMAGE
cutIMAGE
sizeINT
xINT
yINT
cut_maskMASK