This project is not covered by Drupal’s security advisory policy.
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
Project information
- Ecosystem: AI (Artificial Intelligence), Recipe
- By robloach on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Development version: 1.0.x-dev updated 16 Sep 2026 at 22:49 UTC

