Skip to main content

Adaptive Auto Cropping

Adaptive auto-cropping is a dedicated tool for the automatic cropping of portrait images, which is adaptive to the head size of the subject. The crop can be controlled with a number of parameters, such as the desired headroom and the desired size of the subject's head relative to the cropped image.

As a result, the crop is adaptive to the individual size of the subject's head to achieve consistent results over a series of images.

Samples

Source files

Composition: Medium

Target composition: Medium Parameter settings:

  • Aspect Ratio: 4:3
  • Head Size: 0.16
  • Headroom: 0.5
  • Headroom Unit: Head height
  • Align Eyes: On

Composition: Close

Target composition: Close Parameter settings:

  • Aspect Ratio: 4:3
  • Head Size: 0.33
  • Headroom: 0.45
  • Headroom Unit: Head Height
  • Align Eyes: On

Composition: Very Close

Target composition: Very Close Parameter settings:

  • Aspect Ratio: 4:3
  • Head Size: 0.50
  • Headroom: 0.25
  • Headroom Unit: Head height
  • Align Eyes: On

Portrait Auto Cropping

[AutoCrop] Section

Controls automatic cropping based on facial detection and provides fine-grained control over portrait composition.

Parameters

ParameterTypeDefaultDescription
HeadYawCoeffFloat0.666667Coefficient for head yaw adjustment
HeadPitchCoeffFloat0.750000Coefficient for head pitch adjustment
HeadroomFixed0, 11Use fixed headroom calculation
HeadroomUnitInteger0Headroom unit type
ImageToHeadRatioFloat0.481635Ratio of image to head size
HeadroomLeftFloat0.106061Left side headroom
HeadroomFloat0.106061General headroom
CropModeHeadroomFloat0.000000Headroom for crop mode
AspectHeightFloat1.000000Target aspect ratio height
AspectWidthFloat1.000000Target aspect ratio width
CropModePortraitInteger2Portrait cropping mode
AdaptAspectRatioToFace0, 11Adapt aspect ratio based on face detection
AspectRatioInteger0Fixed aspect ratio mode
CropModeInteger0General cropping mode

Aspect Ratio Options

ValueDescription
SourceUse source image aspect ratio
Source w:hUse source image width:height ratio
Source h:wUse source image height:width ratio
Portrait 2:3Portrait format with 2:3 ratio
Landscape 3:2Landscape format with 3:2 ratio
Portrait 3:4Portrait format with 3:4 ratio
Landscape 4:3Landscape format with 4:3 ratio
Square 1:1Square format
Panorama 16:9Panoramic format
Passport 7:9Passport photo format
Custom w:hCustom width:height ratio

Control Options

Adapt to Face (Keep Face Orientation)

  • Type: Checkbox (On | Off)
  • Description: The crop is oriented according to the orientation of the face by default. There are edge cases which may require turning "Adapt to Face" off, such as when the face of the subject is oriented horizontally in the source image and the orientation should be preserved.

Align Eyes

  • Type: Checkbox (On | Off)
  • Description: When activated, the position of the subject is adjusted to keep the eye line consistent over a series of images. The exact position depends on the headroom and target head size.

Head Size

  • Type: Value (Range: 0.00 to 1.00)
  • Description: Determines the size of the head in respect to the cropped image. A value of 0.50 results in a head size of 50% of the cropped image.

Headroom

  • Type: Value (Range: 0.00 to 1.00)
  • Description: Determines the amount of headroom as a percentage of either the height of the cropped image or the height of the head. A value of 0.10 represents 10% of the selected Headroom Unit.

Headroom Unit

  • Type: Radio Button (Crop Height | Head Height)
  • Description: Determines if the headroom is taken from the height of the cropped image or the height of the head in the image.

Usage Notes

  • Default values of 0.5 for strength parameters provide a balanced starting point for most automatic applications
  • Face-related features should be used with caution in automated workflows
  • Background manipulation modes require manual result verification
  • Super-resolution modes significantly increase processing time but improve quality for upscaling scenarios