ComfyUI Node
Smart Image Crop (Still)
A ComfyUI node in Smart Image Tools with 11 inputs and 4 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| resolution_mode | COMBO | Automatic | 2 options: Automatic, Manual |
| max_resolution | INT | 2048256–16384 | MAX LIMIT: If the cropped area is larger than this, it will be SCALED DOWN so its longest side equals this value. |
| min_resolution | INT | 76864–2048 | MIN LIMIT: If the cropped area is smaller than this, it will be SCALED UP so its longest side equals this value. |
| manual_width | INT | 102464–8192 | — |
| manual_height | INT | 102464–8192 | — |
| mask_grow_pixels | INT | 32-1024–1024 | Grow or shrink the detected mask before cropping. Positive grows, negative shrinks. |
| patch_mask_holes | BOOLEAN | true | Fills small holes and gaps in the detected mask to ensure a solid shape. |
| no_mask_mode | COMBO | Bypass | What to do when no mask pixels are detected. |
| force_divisibility | COMBO | 128 | Ensure output dimensions are divisible by this number (crucial for VAEs) |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| crop_image | IMAGE | — |
| crop_mask | MASK | — |
| stitcher_info | DICT | — |
| preview_overlay | IMAGE | — |