Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

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.

Activity

Total releases
9
First release
Jun 2025
Latest release
1 month ago
Releases (12 mo)
4 ▼ from 5
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.1.2 Stable May 27, 2026
1.1.1 Stable Dec 29, 2025
1.0.6 Stable Nov 24, 2025
1.0.5 Stable Oct 20, 2025
1.0.4 Stable Jul 2, 2025
1.0.3 Stable Jun 25, 2025
1.0.2 Stable Jun 23, 2025
1.0.1 Stable Jun 23, 2025
1.0.x-dev Dev Jun 16, 2025