Image Style Chain provides a lightweight, zero-dependency Image Effect plugin that lets you embed and run an existing Image Style inside another Image Style.
Instead of duplicating shared base transformations—such as focal-point cropping, color grading, or watermarking—across dozens of responsive breakpoints and component styles, define your base Image Style once and chain it into downstream styles.
Key Features
- In-Memory Execution: Runs all effects from the chained Image Style directly against the active image resource without writing intermediate files to disk.
- Circular Dependency Protection: Filters out styles that would create loops in the administrative UI and enforces a runtime execution guard to prevent infinite recursion.
- Automatic Cascade Flushing: Implements
hook_image_style_flush()so editing or flushing a base style automatically invalidates derivative images for every parent style that references it. - Configuration Dependency Tracking: Registers chained styles as config dependencies so Drupal warns administrators before deleting a base style that is still in use and orders configuration imports cleanly.
- Accurate Dimension Calculation: Delegates
transformDimensions()through the full chain so responsive image attributes (widthandheight) remain accurate.
Use Cases
- Shared Brand Treatments: Maintain a single Brand Watermark or Duotone Overlay style and prepend it to multiple card, hero, and thumbnail styles.
- Responsive Breakpoint Variants: Create a base style that handles art-directed cropping and sharpening, then chain it into separate styles that scale and convert to WebP or AVIF for different viewport widths.
- Modular Effect Presets: Break complex multi-step image pipelines into smaller, reusable building blocks that are easier to audit and maintain.
Installation & Usage
- Navigate to Configuration > Media > Image styles (
/admin/config/media/image-styles) and edit a target style. - Select Apply Image Style Chain → from the effect dropdown, choose the base Image Style to execute, and drag it to the desired position in your effect order.
Ask your assistant about Image Style Chain →
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | 11 | PHP >=8.3 | Nov 28, 2026 |