drupal / ai_recipe_image_crop
Adds AI-suggested focal points to Images using the AI Image Crop module.
Package info
git.drupalcode.org/project/ai_recipe_image_crop.git
Type:drupal-recipe
pkg:composer/drupal/ai_recipe_image_crop
Requires
- drupal/ai: ^1.4
- drupal/ai_image_crop: ^1.0@alpha
- drupal/core: ^10.3 || ^11
- drupal/focal_point: ^2.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-10 20:11:38 UTC
README
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
- Configured default AI Vision provider (OpenAI GPT-4o/GPT-5, Anthropic Claude, Google Gemini, etc.) at
/admin/config/ai/settings
Apply
- Set up a vision-capable provider before applying
- 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 that the widget component is replaced wholesale: if you had customized the image widget's settings or third-party settings (for example a Field Widget Action), it will overwrite them. See: https://www.drupal.org/project/drupal/issues/3537773
Issue queue
Bugs and feature requests: https://www.drupal.org/project/issues/ai_recipe_image_crop