ComfyUI Node
LC Face Crop π
Crops to a format (LC Aspect Ratio Simplifier's presets) with the faces placed well, not a blind centre crop. widest keeps as much picture as the format allows; upper body, head & shoulders and face frame tighter from the face size (character datasets). SAM 3 finds the faces, or wire a mask to frame anything.
LC Face Crop π
- image
- mask
- image
- width
- height
βaspect_ratioInstagram Portrait (4:5) - 1080x1350βΊ
βcustom_width1080βΊ
βcustom_height1350βΊ
βframingwidestβΊ
βfacesallβΊ
βoutput_sizepreset sizeβΊ
βsam3_modelβΎβΊ
βthreshold0.50βΊ
CategoryLC MaskMaker/image
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | β | |
| aspect_ratio | COMBO | Instagram Portrait (4:5) - 1080x1350 | The format to crop to (the same list as LC Aspect Ratio Simplifier). |
| custom_width | INT | 108064β16384 | Used when aspect_ratio is custom. |
| custom_height | INT | 135064β16384 | Used when aspect_ratio is custom. |
| framing | COMBO | widest | widest: as much of the picture as the format allows, faces placed well. upper body / head & shoulders / face: tighter, sized from the face (datasets). |
| faces | COMBO | all | all: every face found stays in the crop. largest: frame the main face only. |
| output_size | COMBO | preset size | preset size: resized to the format's size (e.g. 1080x1350). keep pixels: the crop at the picture's own resolution. |
| sam3_model | COMBO | SAM 3 model that finds the faces. | |
| threshold | FLOAT | 0.500.05β0.95 | How sure SAM 3 has to be that it is a face. |
| maskopt | MASK | Optional. Frame this mask instead of searching for faces (any subject: a car, a product, a pet). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| width | INT | β |
| height | INT | β |