Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AI Recipe Image Crop

No security coverage

Part of the AI ecosystem · 343 projects

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

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

Ask your assistant about AI Recipe Image Crop

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

Tracked releases
3
Tracked since
Sep 2026
Latest release
3 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha2 Pre-release Sep 16, 2026
1.0.0-alpha1 Pre-release Sep 10, 2026
1.0.x-dev Dev Sep 9, 2026