AutoCrop

Perform automatic cropping on images or video thumbnails.

What is AutoCrop API?

Firefly's AutoCrop API is a smart cropping service that automatically generates aesthetically pleasing and contextually relevant crops and resizing of images or video thumbnails. It leverages deep learning models to detect and preserve key foreground objects.

The service is designed to support these key scenarios:

Smart crop

Given an image and a target resolution, the service returns an optimal crop.

Priority object crop

Given an image, a target resolution, and a list of objects, the service returns a crop that prioritizes these objects.

Full subject crop

Given an image, the service returns the minimum bounding crop that contains all detected foreground objects.

Object detection and Super Box crop

Given an image, the service returns bounding boxes for all detected objects, and a subject crop—a "Super Box" that encloses all detected objects.