Search by

drupal / varbase_ai_media_base

Drupal-Infrastructure

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

Homepage

Issues

Type:drupal-recipe

pkg:composer/drupal/varbase_ai_media_base

Statistics

Installs: 2 592

Dependents: 1

Suggesters: 0

1.0.2 2026-11-25 08:05 UTC

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.