Dynamic Image Generator
This module allows you to dynamically generate images within Drupal using HTML and CSS templates. You can create templates with Twig and Drupal tokens to style images based on content and then assign these templates to image fields on your content types.
Generate dynamic images from HTML/CSS templates directly within Drupal. This module empowers content creators and site builders to create styled images on the fly using configurable templates mapped to Drupal content.
Features
HTML/CSS + Twig + Drupal Tokens
Create templates using Twig syntax and Drupal tokens (e.g., [node:title], [node:content-type]) within HTML/CSS to generate images dynamically.
Background Image Support
Upload images and reference them in your HTML/CSS template via tokens
Field-Specific Configuration
Assign templates to specific Image or Media image fields on any content type.
Multiple Templates Per Field
You can create multiple templates for the same image field. All active templates will be available in the node edit form. Select your desired template and save the node—an image will be automatically generated using that template and stored in the field.
Image Report
View a report of all dynamic images generated, with filtering by template name, content type, or node.
External Image Generation API
Uses the HTML/CSS to Image API to convert HTML/CSS into images. This API is a required dependency for the module to function.
Depends on
Dependencies of the latest stable release
- field Drupal core
- file Drupal core
- image Drupal core
- media Drupal core
- node Drupal core
- system Drupal core
- user Drupal core
- views Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.1.2 | Stable | 10–11 | May 27, 2026 | ||
| 1.1.1 | Stable | 10–11 | Dec 29, 2025 | ||
| 1.0.6 | Stable | 10 | Nov 24, 2025 | ||
| 1.0.5 | Stable | 10 | Oct 20, 2025 | ||
| 1.0.4 | Stable | 10 | Jul 2, 2025 | ||
| 1.0.3 | Stable | 10 | Jun 25, 2025 | ||
| 1.0.2 | Stable | 10 | Jun 23, 2025 | ||
| 1.0.1 | Stable | 10 | Jun 23, 2025 | ||
| 1.0.x-dev | Dev | 10–11 | The Dynamic Image Generator module creates a custom entity type for generating dynamic images using a third-party API. This module allows users to define HTML and CSS templates and then dynamically generate images based on these templates with custom toke | Jun 16, 2025 |