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.
In this module the focus is defined as a single point on the image. Among other things this helps to solve the problem of guaranteeing the size of a cropped image as described here: https://drupal.org/node/1889542.
There is an update path provided (during installation) that will migrate existing imagefield_focus data to focal_points.
Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules.
You can specify which type of image fields should use focal point by visiting the configuration screen.
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. Done.
As a bonus, you can double-click the crosshair to see the exact coordinates (in percentages) of the focal point.
The focal point module comes with two image effects:
Both effects will make sure that the define focal point is as close to the center of your 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.
The focal point module's configuration form has only three options. You can enable focal point on standard image fields and/or media image fields. Additionally, you can specify what image preset to use for the preview image if none is already provided.
Additionally, you can select what method to use when calculating the initial focal point value on image upload. Out of the box, the smart crop module (if it's installed) can be selected or you can write your own. See focal_point.api.php for an example of this. Use this option with care however since it can require a lot of memory and image processing.
Submit your issue at https://github.com/backdrop-contrib/focal_point/issues.
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.
Ported to Backdrop by:
This module is based on the Focal Point module for Drupal--starting at version 7.x-1.1--originally written and maintained by: