dynamic_image_generator
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.