This project adds AI-powered focal point suggestions to image media items. Editors can click a button to automatically identify the main subject of an image, and then fine-tune the focal point manually if needed. This helps ensure images are cropped optimally.
Adds AI-suggested focal points to Images in the Media: Image bundle. Editors get a "Suggest AI Focal Point" button on the image field. Clicking it will leverage a vision-capable AI model to automatically place a focal point on the main subject. The result can still be adjusted by hand.
Requirements
- Drupal 10.3+ or 11
- AI Module
- AI Image Crop
- Focal Point
- AI vision provider, like OpenAI, Anthropic Claude, Google Gemini, etc
Apply
- Set up a vision-capable provider before applying:
admin/config/ai/settings - Install the recipe:
composer require drupal/ai_recipe_image_crop - Apply the recipe:
drush recipe ../recipes/ai_recipe_image_crop drush cache:rebuild
What it does
- Applies core's
image_media_typerecipe for the Media: Image bundle - Installs
ai,ai_image_crop, andfocal_point - Switches the
field_media_imagewidget on the Image media type'sdefaultandmedia_libraryform displays to Focal Point -
Enables the AI Suggestion button for the Image Fields
Note: There's an issue with recipe component settings which will override all configurations. Make sure you double check the settings after applying this one. See the issue for more details: https://www.drupal.org/project/drupal/issues/3537773
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.
More in the AI ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | Sep 9, 2026 |