Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module automatically suggests optimal focal points and crop areas for images using AI vision models. It integrates with existing cropping widgets and allows for manual adjustments or bulk processing of crops.

A Drupal module that uses AI vision models to automatically suggest optimal
focal points and crop areas for images. It integrates with the Focal Point widget and the Image Widget Crop module.

Requirements

  • Drupal 10.3+ or 11
  • AI module with at least one vision-capable provider configured that handles structured output (e.g. OpenAI with GPT-4o/GPT-5.1)

Installation

composer require drupal/ai_image_crop
drush en ai_image_crop

Setup

  1. Go to Administration > Configuration > AI > AI Image Crop
    (/admin/config/ai/ai-image-crop)
  2. Select an AI Provider and Model that supports vision (e.g. OpenAI /
    gpt-5.1)
  3. Configure maximum iterations and default prompts as needed
  4. On your content type's Manage form display, enable the "AI crop" checkbox on the Focal Point or Image Widget Crop widget settings

Usage

When editing content, click the Suggest AI Crop button on an image field. The module will send a scaled-down preview to the AI, which analyzes the image and returns suggested crop coordinates. You can adjust the result manually before saving.

Bulk processing is also available via the AI Image Crop action on content admin views.

Documentation

Full documentation is available in under https://project.pages.drupalcode.org/ai_image_crop/.

AI Disclosure.

Note that not a single line of code has been written by a human on the first commit on this project as a proof of concept. There has however been reviews of the code for security concerns and maintainability. The module will not have security review enabled, until a full code review has been done. The ongoing maintainance of the module will be handled like any other module, since code agents are still having issue with too verbose code over too many edits.

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
1
Tracked since
Jan 2026
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Jan 26, 2026