Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Combined image style

44 sites Security covered Drupal 10–11
View on drupal.org

This module allows you to combine multiple image styles into a single derivative, reducing the number of image styles needed. It provides a drop-in replacement for core image style handling and offers basic field formatters for image and media entity reference fields.

Started off as a module for developers who need the combined output of multiple image styles. It serves as a drop-in replacement of the core image style handling and both systems just keep working. It combines the image style machine names for folder structure and itok tokens for security.

E.g. you have image styles "portrait", "square" and "landscape" which will crop an image into the desired shape. Now you want to generate, for each of the previously mentioned, images to "thumbnail", "medium" and "large" sizes. In this simple example you can reduce the amount of images styles from 9 to 6.

Return a render array:

(new CombinedImageStyle())
  ->setSourceUri($uri)
  ->setImageStyles(['square', 'thumbnail'])
  ->toImage();

return the image style URI.

(new CombinedImageStyle())
  ->setSourceUri($uri)
  ->setImageStyles(['square', 'medium'])
  ->buildCombinedUri();

Generate the derivative and return the image style URI.

(new CombinedImageStyle())
  ->setSourceUri($uri)
  ->setImageStyles(['square', 'large'])
  ->buildCombinedUri(TRUE);

The module now also has a submodule with a couple of really basic field formatters for image and media (entity reference) fields. Other modules that work with this module:

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

Tracked releases
7
Tracked since
Jan 2025
Latest release
1 month ago
Releases (12 mo)
3 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.6 Stable 10–11 Jul 7, 2026
1.0.5 Stable 10–11 Nov 5, 2025
1.0.4 Stable 10–11 Nov 4, 2025
1.0.3 Stable 10–11 Apr 2, 2025
1.0.2 Stable 10–11 Mar 19, 2025
1.0.1 Stable 8–11 Jan 14, 2025
1.0.0 Stable 8–11 Jan 2, 2025