ComfyUI Node
Input & Crop Config
A ComfyUI node in PortraitUtils/Config V2 with 12 inputs and 1 output.
Input & Crop Config
- crop_config
◄autocrop_section── AUTOCROP · SOLID BORDER REMOVAL ──►
◄autocrop_strip_bottom_bannertrue►
◄autocrop_detect_borderstrue►
◄autocrop_fuzz_tolerance0.07►
◄autocrop_edge_uniformity0.85►
◄autocrop_pad_px0►
◄smart_crop_section── SMART CROP · SUBJECT / NATIVE SIZE ──►
◄smart_cropfalse►
◄resolution_policyAuto (preserve detail)►
◄forced_aspect_ratioAuto►
◄subject_mask►
◄padding_fillEdge extension►
CategoryPortraitUtils/Config V2
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| autocrop_section | COMBO | ── AUTOCROP · SOLID BORDER REMOVAL ── | 1 options: ── AUTOCROP · SOLID BORDER REMOVAL ── |
| autocrop_strip_bottom_banner | BOOLEAN | true | Remove a dark text/banner strip touching the bottom edge before border detection. |
| autocrop_detect_borders | BOOLEAN | true | Remove uniform solid borders before subject framing. |
| autocrop_fuzz_tolerance | FLOAT | 0.070–0.5 | Color variation tolerated while identifying a solid border. |
| autocrop_edge_uniformity | FLOAT | 0.850–1 | Fraction of an edge row/column that must match the border color. |
| autocrop_pad_px | INT | 00–256 | Pixels of detected border to retain on each cropped edge. |
| smart_crop_section | COMBO | ── SMART CROP · SUBJECT / NATIVE SIZE ── | 1 options: ── SMART CROP · SUBJECT / NATIVE SIZE ── |
| smart_crop | BOOLEAN | false | OFF keeps the widest safe frame. ON frames more tightly around the subject mask. |
| resolution_policy | COMBO | Auto (preserve detail) | Auto: FireRed uses ~1 MP workflow presets; Klein can use 1/1.5 MP; Qwen 2.1 can also use 2K (~4 MP). Force 1.5 MP is an experimental larger output for FireRed. Force 2K is Qwen 2.1 only. |
| forced_aspect_ratio | COMBO | Auto | Force an exact output aspect family, or use Auto for minimal cropping. |
| subject_mask | STRING | — | |
| padding_fillopt | COMBO | Edge extension | Smart Photo Prepare only: fill added canvas with Black, White, or repeated edge pixels. Does not change crop/protection decisions or AutoCrop border removal. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| crop_config | PORTRAIT_CROP_CONFIG_V2 | — |