Nodes/ComfyCollectorNodes/Cropped Image (CCN)
ComfyUI Node

Cropped Image (CCN)

Interactive visual crop. Drag corners on the canvas preview to define a crop region. 'image' output is resized to model-friendly dimensions (floored to snap_to); 'raw_image' is the exact pixel crop; 'source_image' passes through the original uncropped image.

By valkymaera·Created 3 months ago·Updated 4 days ago· 1
Cropped Image (CCN)
  • image
  • image
  • raw_image
  • mask
  • crop_x
  • crop_y
  • crop_width
  • crop_height
  • source_image
lock_ratiofalse
snap_to8
crop_x10.0000
crop_y10.0000
crop_x21.0000
crop_y21.0000
loaded_image
debugfalse
CategoryComfyCollectorNodes/Image

Inputs (9)

NameTypeDefaultDescription
lock_ratioBOOLEANfalse
snap_toINT81–64Model-friendly output dimensions are floored to this multiple.
crop_x1FLOAT0.00000–1
crop_y1FLOAT0.00000–1
crop_x2FLOAT1.00000–1
crop_y2FLOAT1.00000–1
imageoptIMAGE
loaded_imageoptCOMBO2 options: none, example.png
debugoptBOOLEANfalse

Outputs (8)

NameTypeDescription
imageIMAGE
raw_imageIMAGE
maskMASK
crop_xINT
crop_yINT
crop_widthINT
crop_heightINT
source_imageIMAGE