Ai Recipe Image Classification
This project adds AI-powered image description and classification to Drupal media. When you upload an image, it can automatically generate alt text, a free-text description, and relevant tags drawn from a taxonomy vocabulary. This enhances media discoverability and reduces manual content maintenance.
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
-
Drupal core: ^10.4 or ^11
-
AI module ^1.2
-
Token module ^1.16
How to get started
-
Install this recipe into your
recipes/directory using Composer -
Configure an AI provider that supports Chat with Image Vision
-
Run
drush recipe ../recipes/ai_recipe_image_classification -
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 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.
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.