logo

How we built AI face cropping for Images

ID: 87e7979f-af92-56ff-bbd0-652f33736756

STIX ID: report--87e7979f-af92-56ff-bbd0-652f33736756

Feed Name: Cloudflare Blog

Date Published: 2025-08-20

Date Updated: 2026-04-27

Author: Deanna Lam

...
...

Cloudflare details the general availability of AI face cropping in Images, a feature that automatically detects faces and crops images using `gravity=face` and a `zoom` parameter. The post explains how RetinaFace (a CNN) powers detection, outlines the bounding-box aggregation and scaling logic, and describes performance choices like a 1024×1024 inference cap. It also covers the migration from a Rust/CPU-based prototype to a GPU-backed Workers AI implementation to mitigate memory pressure, reduce instance memory to ~150 MiB, and improve reliability; the feature is already applied to author images on the Cloudflare blog and will be followed by additional AI image tools like background removal and generative upscale.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.