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

Apply

  1. Set up a vision-capable provider before applying:
    admin/config/ai/settings
  2. Install the recipe:
    composer require drupal/ai_recipe_image_crop
    
  3. Apply the recipe:
    drush recipe ../recipes/ai_recipe_image_crop
    drush cache:rebuild
    

What it does

  • Applies core's image_media_type recipe for the Media: Image bundle
  • Installs ai, ai_image_crop, and focal_point
  • Switches the field_media_image widget on the Image media type's default and media_library form 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

Supporting organizations: 
Development

Project information

Releases