Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Focal Point

Security covered Under active development 116,475 sites

Focal Point allows you to define the most important part of an image. This information is then used by image cropping tools to ensure that key subjects are not cut off.

ABOUT

Focal Point allows you to specify the portion of an image that is most important. This information can be used when the image is cropped or cropped and scaled so that you don't, for example, end up with an image that cuts off the subject's head.

DEPENDENCIES

Drupal 8
Crop API
Image (from Core)
Drupal 7
Entity
Image (from Core)

USAGE

Thanks to the folks at Evolving Web there is a great tutorial that shows you exactly how to set up Focal Point.

STEP 1: Set up your image fields

For D8...

Install the module as usual. Once enabled you will have a shiny new image field widget called "Image (Focal Point)". Using this widget will allow your content editors to set the focal point at the desired position on the image (see below).

For D7...

Install the module as usual. Once enabled all standard image fields will allow users to set a focal point by default. The D7 version also supports media image fields if you are using the Media module ( >= 7.x-2.x).

STEP 2: Set the focal point for an image

To set the focal point on an image, go to the content edit form (ex. the node edit form) and upload an image. You will notice a crosshair in the middle of the newly uploaded image. Drag this crosshair to the most important part of your image. Alternatively you can click on the important part of your image if dragging seems too daunting.

As a bonus, you can double-click the crosshair to see the exact coordinates (in percentages) of the focal point.

STEP 3: Setup an image style to crop your image

The focal point module comes with two image effects:

  • focal point crop
  • focal point crop and scale

Both effects will ensure that the user-defined focal point is as close to the center of your cropped image as possible. It guarantees the focal point will be not be cropped out of your image and that the image size will be the specified size.

Drupal 9–11

Ask your assistant about Focal Point

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Activity

Tracked releases
8
Tracked since
Apr 2023
Latest release
2 weeks ago
Releases (12 mo)
1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.3 Stable 9–11 Sep 23, 2026
2.1.2 Stable 9–11 Nov 14, 2024
2.1.1 Stable 9–11 Jul 16, 2024
2.1.0 Stable 9–10 May 7, 2024
2.0.3 Stable 9–10 Mar 15, 2024
2.0.2 Stable 9–10 Jul 27, 2023
2.0.1 Stable 9–10 Jul 11, 2023
2.0.0 Stable 9–10 Apr 12, 2023