ComfyUI Node
Image Face Aspect Crop
Crops an image to a target aspect ratio, anchoring around the largest detected face, and emits a debug overlay image showing the crop box and detected faces.
Image Face Aspect Crop
- image
- cropped_image
- debug_image
◄width1024►
◄height576►
◄face_anchor_strength0.90►
◄center_bias_weight0.10►
◄subject_top_bias0.20►
◄secondary_face_weight0.15►
◄max_anchor_shift_ratio1.00►
◄detect_scale_factor1.10►
◄detect_min_neighbors5►
◄min_face_percent3.0►
◄debug_printsfalse►
Categoryillumorae
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| width | INT | 102416–8192 | — |
| height | INT | 57616–8192 | — |
| face_anchor_strength | FLOAT | 0.900–1 | — |
| center_bias_weight | FLOAT | 0.100–2 | — |
| subject_top_bias | FLOAT | 0.200–2 | — |
| secondary_face_weight | FLOAT | 0.150–2 | — |
| max_anchor_shift_ratio | FLOAT | 1.000.1–1 | — |
| detect_scale_factor | FLOAT | 1.101.01–1.5 | — |
| detect_min_neighbors | INT | 51–12 | — |
| min_face_percent | FLOAT | 3.00.5–40 | — |
| debug_printsopt | BOOLEAN | false | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| cropped_image | IMAGE | — |
| debug_image | IMAGE | — |