AI image classification
Field Widget Action Generate Alt Text
Automator Describe Image
Automator Tag Image
AI image classification

What it does

Adds AI-powered image description and classification capabilities to Drupal media.

With this recipe, your Drupal site gains automatic image understanding: when you upload a media image, the system can generate:

  • Alt text via the “Generate Alt Text” action

  • Image description (free-text)

  • Image tags drawn from a taxonomy vocabulary

All of this is wired into the media/image bundle, so it works out-of-the-box once the recipe is applied.

Why it matters

Drupal currently lacks built-in AI-based image classification, which limits media discoverability, search, and automation. This recipe helps close that gap by:

  • Enabling richer metadata on images without manual editing

  • Supporting future AI features (e.g. RAG-based image retrieval)

  • Reducing the burden of content maintenance

It’s a foundational building block for more advanced media/AI workflows.

How it works (internals)

When applied, the recipe configures:

  • A new taxonomy vocabulary dedicated to image classification

  • A description field added to the media/image bundle

  • A taxonomy reference field for classification tags

  • Field widget actions on media/image to invoke alt-text generation

  • Automators so that descriptions and tags are populated after saving

On upload or editing, once you generate alt text and save, the description and tags are automatically filled. 

Requirements & compatibility

How to get started

  1. Install this recipe into your recipes/ directory using Composer 

  2. Configure an AI provider that supports Chat with Image Vision

  3. Run drush recipe ../recipes/ai_recipe_image_classification

  4. Upload or edit a media image, click “Generate Alt Text,” and save

After saving the description and tags are filled out automatically.

Supporting organization

1xINTERNET logo
1xINTERNET is a full-service digital agency focusing on robust and innovative digital solutions based on Drupal. As a Gold Certified Drupal Partner, a founding member of the Drupal AI Initiative, and active community contributor, 1xINTERNET supports clients throughout their digital transformation journey.

Supporting organizations: 
Sponsor development

Project information

Releases