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).
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - 988 sites report using this module
- Created by jcisio on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 2.0.x-dev updated 12 Jan 2024 at 08:20 UTC
Development version: 7.x-1.x-dev updated 6 Jan 2013 at 01:27 UTC