Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Image Focus Crop

637 sites Security covered Drupal 10–11
View on drupal.org

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).

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
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.2 Stable 10–11 Feb 7, 2025