Image Kit icon

Image Kit

HTML to Image conversion service with font support

Image → Crop Face

AI-generated

Summary

Crop a face region from an input image by detecting faces and extracting the specified face area, returning the cropped face image as a PNG alongside metadata.

Inputs

  • imageBinaryField (required) — Name of the binary field containing the input image to process.
  • confidence_threshold — Minimum confidence threshold (0-1) for face detection to consider a face valid.
  • width — Width of the output cropped image in pixels.
  • height — Height of the output cropped image in pixels.
  • respect_aspect_ratio — Whether to maintain the source image's aspect ratio in the crop.

Output shape

A structured output with one JSON object and one binary image file per input item.

The JSON output includes width, height, and the confidence score of the detected face. The binary output contains the cropped face image in PNG format under the binary field 'data'. The output is paired to the originating input item.

Links

Discussion