Nodes/ComfyUI_illumorae/Image Face Aspect Crop
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.

By CorvaeOboro·Created 7 months ago·Updated 8 days ago· 1
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)

NameTypeDefaultDescription
imageIMAGE
widthINT102416–8192
heightINT57616–8192
face_anchor_strengthFLOAT0.900–1
center_bias_weightFLOAT0.100–2
subject_top_biasFLOAT0.200–2
secondary_face_weightFLOAT0.150–2
max_anchor_shift_ratioFLOAT1.000.1–1
detect_scale_factorFLOAT1.101.01–1.5
detect_min_neighborsINT51–12
min_face_percentFLOAT3.00.5–40
debug_printsoptBOOLEANfalse

Outputs (2)

NameTypeDescription
cropped_imageIMAGE
debug_imageIMAGE