Nodes/Smart Image Crop and Stitch/Smart Image Crop (Still)
ComfyUI Node

Smart Image Crop (Still)

A ComfyUI node in Smart Image Tools with 11 inputs and 4 outputs.

By HallettVisual·Created 2 months ago·Updated about a month ago· 37
Smart Image Crop (Still)
  • image
  • mask
  • crop_image
  • crop_mask
  • stitcher_info
  • preview_overlay
resolution_modeAutomatic
max_resolution2048
min_resolution768
manual_width1024
manual_height1024
mask_grow_pixels32
patch_mask_holestrue
no_mask_modeBypass
force_divisibility128
CategorySmart Image Tools

Inputs (11)

NameTypeDefaultDescription
imageIMAGE
maskMASK
resolution_modeCOMBOAutomatic2 options: Automatic, Manual
max_resolutionINT2048256–16384MAX LIMIT: If the cropped area is larger than this, it will be SCALED DOWN so its longest side equals this value.
min_resolutionINT76864–2048MIN LIMIT: If the cropped area is smaller than this, it will be SCALED UP so its longest side equals this value.
manual_widthINT102464–8192
manual_heightINT102464–8192
mask_grow_pixelsINT32-1024–1024Grow or shrink the detected mask before cropping. Positive grows, negative shrinks.
patch_mask_holesBOOLEANtrueFills small holes and gaps in the detected mask to ensure a solid shape.
no_mask_modeCOMBOBypassWhat to do when no mask pixels are detected.
force_divisibilityCOMBO128Ensure output dimensions are divisible by this number (crucial for VAEs)

Outputs (4)

NameTypeDescription
crop_imageIMAGE
crop_maskMASK
stitcher_infoDICT
preview_overlayIMAGE