ComfyUI Node
Smart Object Isolate Crop
Crops an object and returns an RGBA isolated image plus matching mask for GPT Image detail enhancement without body/background context.
Smart Object Isolate Crop
- image
- mask
- stitcher
- isolated_image
- isolated_mask
- isolated_mask_image
- preview_image
- info
◄resize_modeupscale_to_target_if_smaller►
◄target_width1024►
◄target_height1024►
◄mask_expand_percent0.0►
◄alpha_feather_percent1.50►
◄target_size_modemax_for_aspect_ratio►
◄target_aspect_ratiomask_bbox►
◄outside_fillgray►
◄downscale_algorithmbilinear►
◄upscale_algorithmbicubic►
◄device_modegpu (much faster)►
◄depad_florencetrue►
◄region_info—►
◄edge_guard_percent3.00►
◄crop_padding_percent8.0►
◄visible_context_percent10.0►
Categoryinpaint/masked
Inputs (18)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| resize_mode | COMBO | upscale_to_target_if_smaller | 3 options: keep_local_size, upscale_to_target_if_smaller, resize_to_target |
| target_width | INT | 102464–16384 | — |
| target_height | INT | 102464–16384 | — |
| mask_expand_percent | FLOAT | 0.00–30 | Small expansion for edit coverage. Keep near 0 to avoid body context. |
| alpha_feather_percent | FLOAT | 1.500–20 | Softens the isolated object edge and final paste mask. |
| target_size_mode | COMBO | max_for_aspect_ratio | 2 options: manual_width_height, max_for_aspect_ratio |
| target_aspect_ratio | COMBO | mask_bbox | 11 options: mask_bbox, input_image, 1:1, 16:9, 9:16, 4:5, +5 |
| outside_fill | COMBO | gray | RGB color written outside the object in case a downstream model ignores alpha. |
| downscale_algorithm | COMBO | bilinear | 6 options: nearest, bilinear, bicubic, lanczos, box, hamming |
| upscale_algorithm | COMBO | bicubic | 6 options: nearest, bilinear, bicubic, lanczos, box, hamming |
| device_mode | COMBO | gpu (much faster) | 2 options: gpu (much faster), cpu (compatible) |
| depad_florence | BOOLEAN | true | Keep True when the mask comes from Florence-2. |
| region_infoopt | STRING | — | |
| edge_guard_percentopt | FLOAT | 3.000–15 | Forces the outer crop border to remain uneditable. This discourages image editors from completing garments that are cut off by the crop or source frame. |
| crop_padding_percentopt | FLOAT | 8.00–60 | Expands the crop around the garment so nearby original skin/background can be preserved. |
| visible_context_percentopt | FLOAT | 10.00–80 | Shows a small ring of original pixels around the garment to the editor. The edit mask remains limited to the garment. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| stitcher | STITCHER | — |
| isolated_image | IMAGE | — |
| isolated_mask | MASK | — |
| isolated_mask_image | IMAGE | — |
| preview_image | IMAGE | — |
| info | STRING | — |