Pose Crop

Person-aware Crop modes based on pose landmarks and face-based straightening.

Pose Crop is the right mode when the image contains a person and you want the crop frame to follow the body, face, or portrait composition. Set AutoStraightenMode: "Person" to straighten from pose landmarks. Use AutoMode: "Auto" to let Crop choose a preset, or AutoMode: "Fixed" plus CropModeIndex to request a specific crop preset.

Crop API workflows

One pose-aware crop engine for portrait delivery.

Use the same API surface for document photos, business portraits, fashion crops, and product-style person framing. Each example below shows the source image and the JPEG returned by the Cloud API.

ID / VISA / Passport Photo Fixed document preset with face-based straightening.
Business Portrait Vertical upper-body framing that keeps hands and shoulders in the result.
Business portrait source example for pose crop
Before. Download source preview JPEG
Business portrait pose crop result
After: vertical Upper Body crop with extra extension. Download crop JPEG
Ecommerce / Fashion / Product Photo Faceless body crop for apparel, catalog, and marketplace images.
Fashion source image before faceless body crop
Before. Download source preview JPEG
Faceless body fashion crop example
After: Faceless Body preset. Download crop JPEG

Pose Parameters

FieldValueDescription
AutoModeAuto or FixedAuto chooses from enabled crop presets. Fixed uses CropModeIndex.
AutoStraightenModePersonUses pose landmarks to calculate the straighten angle.
CropModeIndex0..9Fixed crop preset index. Index 0 is the passport/document-style preset used by the examples.
AutoCropSwitchesinteger bitmaskControls which pose crop presets are available to AutoMode: "Auto".
CenterFaceHorizontallybooleanCenters the detected face horizontally for pose automatic and fixed crop modes.
AllowOutOfBoundsbooleanAllows fixed crop output outside the input image. Ignored by Auto.

Fixed Pose Presets 0..9

CropModeIndex selects one of ten fixed person-aware crop presets. These names come from the Crop plugin preset list. The examples below were generated from the same source image with AutoMode: "Fixed", AutoStraightenMode: "Person", AspectRatio: "3 : 4", Extend: 10, and fixed output height 512.

All ten Pose Crop fixed presets generated from one source image
Overview of fixed pose presets 0..9. Download overview JPEG
IndexPreset nameTypical useAutoCropSwitches bit
0PassportTight face and document-style portrait crops.1 << 0
1Face & ShouldersHead-and-shoulders portraits, avatars, profile photos.1 << 1
2Upper BodyPortraits that include the upper torso and clothing.1 << 2
3Faceless TopUpper-body fashion or product crops where the face should be excluded.1 << 3
4Faceless BodyBody/outfit crops without the face, useful for apparel catalogs.1 << 4
5Faceless FullFull outfit/body crops that intentionally omit the face.1 << 5
6LegsLower-body, pants, shoes, or leg-focused crops.1 << 6
7Half BodyWaist-up editorial and ecommerce portraits.1 << 7
8Three QuartersThree-quarter fashion and portrait framing.1 << 8
9Full BodyComplete person crops for lookbooks, fashion, and pose datasets.1 << 9
Source image used for fixed pose crop preset examples
Source preview used for all ten fixed pose preset examples. Download source preview JPEG

Fixed Pose Crop Example

This example requests a fixed pose crop with person-based straightening, the passport/document preset, moderate extension around the head and shoulders, and fixed output sizing. For the document-photo workflow, see the passport and ID photo crop guide.

{
  "mode": "professional",
  "outputFormat": "jpeg",
  "tasks": [
    {
      "Plugin": "Crop",
      "Layer": 0,
      "User Params": {
        "AutoMode": "Fixed",
        "AutoStraightenMode": "Person",
        "CropModeIndex": 0,
        "AspectRatio": "3 : 4",
        "CustomAspectX": 3,
        "CustomAspectY": 4,
        "CenterFaceHorizontally": true,
        "CustomMargins": false,
        "Extend": 25,
        "FixSize": true,
        "FixSizePixels": 512
      }
    }
  ]
}

Auto Pose Crop Example

Use AutoMode: "Auto" when the client wants Crop to choose the best pose preset from the enabled preset bitmask.

{
  "mode": "professional",
  "outputFormat": "jpeg",
  "tasks": [
    {
      "Plugin": "Crop",
      "Layer": 0,
      "User Params": {
        "AutoMode": "Auto",
        "AutoStraightenMode": "Person",
        "AutoCropSwitches": 2047,
        "AspectRatio": "Original",
        "CenterFaceHorizontally": true,
        "Extend": 8
      }
    }
  ]
}

Pose Metadata

When Layer: 1 or ZIP output is used, Crop writes pose-related metadata to result.json. The live example below was generated from the same Mayra source on QueueWorker 1.076. It includes AI predicted, poseLandmarks, posePrediction, and subjectMask. Coordinates in poseLandmarks are normalized to the input image: x=0/y=0 is the top-left corner and x=1/y=1 is the bottom-right corner. posePrediction contains the additional model output values that are not landmark coordinate pairs.

Download full result.json or download the metadata ZIP.