drupal / varbase_ai_media_base
Generate images and SVGs with AI from the Media Library on Varbase 11, with the AI Media module: an "Upload | Generate with AI" switch inside the Image and SVG Image tabs, saving into those media types, with the permission granted to the editorial roles. No custom PHP or shell code.
Package info
git.drupalcode.org/project/varbase_ai_media_base.git
Type:drupal-recipe
pkg:composer/drupal/varbase_ai_media_base
Requires
- drupal/ai: ^1.5
- drupal/ai_media: ^1.0.0
- drupal/core: ^11.4 || ^12.0
- drupal/svg_image: ^3.2.5
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-02 12:51:43 UTC
README
Generate images and SVGs with AI from the Media Library on a Varbase 11 site, with the AI Media module.
Documentation
Read the Varbase AI Media Base documentation on the Varbase docs site.
Install
ddev composer require drupal/varbase_ai_media_base:~1
ddev drush recipe ../recipes/varbase_ai_media_base
ddev drush cr
Safe to apply twice.
Tests
A varbase-e2e suite in
tests/features checks a Varbase 11 site with the recipe applied: the
modules it installs, the mapping to Image and SVG Image, Insert Media in Full
HTML, the editorial permissions, and AI Media itself on Varbase (the
Upload | Generate with AI switch, generating images and SVGs, the media edit
form, settings and access). Generation uses the AI module's Echo test
provider, so no key or credit is needed. CI builds that site (varbase-site),
runs the suite (varbase-e2e-test) and writes one report. Locally:
npm install
LAUNCH_URL=https://your-site.ddev.site npm test
See tests/README.md.