Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Image Focus Crop

Security covered Under active development 654 sites

This module automatically determines the most important part of an image and uses that as the focal point for cropping. It works with different image toolkits and doesn't require manual input, although face detection can be slow.

This module uses a few techniques, like face detection or entropy-based measure, to calculate the focal point of an image in order to provide a better "scale and crop" action.

Unlike other similar modules, Image Focus works with any image toolkit (both GD and Image Magick) and does not require any extra user input.

(The download is quite large because there are pattern data for face detection.)

Installation

Enable this module, replace 'imagecache_scale_and_crop' with 'image_focus_scale_and_crop' action in the preset edit page.

Known problems

  • The Face Detection algorithm implementation in PHP is very slow and might cause timeout. Please see the README file and test carefully.
  • Only one face could be detected. It results in a wrong focal point when there is multiple faces. Two solutions: either improve the algorithm implementation or do not use it (by setting the maxsize threshold = 0, see README).
Drupal 10–11

Ask your assistant about Image Focus Crop

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

  • image Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jan 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Releases

Version Type Core PHP Release date
2.0.2 Stable 10–11 Feb 7, 2025
2.0.1 Stable 8–10 Jan 23, 2024