Skip to content

Create changelog-face-cropping #23680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: production
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/content/changelog/images/changelog-face-cropping
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Automatic face cropping in Images
description: When optimizing with Images, automatically crop images toward detected faces.
date: 2025-07-18
---
You can now use Images to [automatically crop images toward detected faces](/images/transform-images/transform-via-url/#gravity).

The `gravity=face` option automatically detects which pixels represent the face (or faces) in an image, and sets a new focal point based on detected faces. If no faces are found, then the focal point will fall back to the center of the image.

This can be combined with the `zoom` paramter to control how much of the surrounding area will be included in the image. Valid range is from `0` to `1`:
- **`0` includes as much of the background as possible
- **`1` crops as closely to the face as possible

![Example of face cropping](~/assets/images/changelog/images/face-cropping.png)

Refer to the [Images documentation](/images/transform-images/transform-via-url) for more information.