WORK IN PROGRESS!
https://www.drupal.org/project/focal_point/issues/2820362
Focal Point Cropping extends the Focal Point module by allowing content editors to draw a draggable, resizable focus area rectangle on images so key subjects are never awkwardly cut off during automatic cropping.
Features
While the standard Focal Point module lets you mark a single X/Y coordinate as the center of interest, a single point is not always enough when dealing with wide group photos, products, or multi-subject images across responsive aspect ratios.
- Interactive Focus Area Box: Adds a draggable and resizable bounding box directly onto the Focal Point image widget preview.
- Area-Aware Image Effect: Includes the Focal Point Area Scale and Crop image effect, which automatically calculates crop dimensions to keep your entire selected region centered and visible whenever possible.
- Seamless Fallback: If no focus area is customized on an image, the effect gracefully falls back to standard single-point Focal Point cropping.
- Zero-Maintenance Upgrades: Built as a lightweight, non-invasive add-on using modern Drupal 11.3+ attribute hooks, keeping your core Focal Point installation clean and easy to update.
Common use cases: Editorial hero banners, team/group portraits, e-commerce product shots, and responsive art direction where a single focal coordinate results in cropped edges.
Post-Installation
- Enable the module: Install Focal Point Cropping via the Extend page (
/admin/modules) or with Drush (drush en focal_point_cropping). - Configure your Image Styles: Navigate to Configuration → Media → Image styles (
/admin/config/media/image-styles). Edit an existing image style (or create a new one) and add the Focal Point Area Scale and Crop effect. - Verify Form Display: Ensure your image or media field's Form Display (Manage form display) is set to use the Image (Focal Point) widget.
- Edit Content: Upload or edit an image on any entity form. Drag and resize the white dashed focus rectangle over the area you want preserved, then save.
Additional Requirements
- Drupal Core: 11.3 or higher.
- Focal Point: Provides the base focal point widget, preview modal, and crop integration.
- Crop API: Required by Focal Point for storing crop coordinates and focus area metadata.
Recommended modules/libraries
- Focal Point (Core Media Library integration): Using Drupal Core's Media Library alongside Focal Point allows editors to define focus areas once on a Media entity and reuse it across your entire site.
- Responsive Image (Drupal Core): Pair multiple image styles using the Focal Point Area Scale and Crop effect with Responsive Image styles for art-directed layouts across mobile, tablet, and desktop breakpoints.
Similar projects
-
https://www.drupal.org/project/simple_crop. Also, A new kid on the block.
- Focal Point: Only supports a single X/Y coordinate point rather than a two-dimensional bounding box. Focal Point Cropping builds directly on top of Focal Point rather than replacing it.
- Image Widget Crop: Requires editors to manually draw separate crops for every individual aspect ratio/crop type. Focal Point Cropping lets editors define a single "safe area" once, and automatically adapts to any number of image styles.
Supporting this Module
If you find this module useful, please consider contributing bug reports, patches, or merge requests in the project issue queue.
Community Documentation
Contributions to documentation, walkthrough videos, and demo recipes are welcome! Feel free to open an issue in the queue to share guides or tutorials.
AI Assistance Disclosure
Portions of this module's scaffolding, Drupal 11.3+ attribute hook refactoring, image effect logic, and project documentation were generated with the assistance of Google's AI (Gemini), adapted from community work on Focal Point issue #2820362, and reviewed/maintained by the project maintainer.
Ask your assistant about Focal Point with Cropping
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
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | 11 | Nov 23, 2026 |