Install

Works with Drupal: ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 44.41 KB
MD5: 9d90db551f09b1b5f1dae8bff0249ab8
SHA-1: 2c03a9dc27284a2442d03475d92ee994190df197
SHA-256: 0522adcccb5814507d5d6afd2a1679c79d66e3b13e3d63d4bbfe96d516cb4e4d
Download zip 78.75 KB
MD5: 95217a37ba76c81bb14191828921706a
SHA-1: 3b812de6da151c8d7166973c23af5cbaa6d598c9
SHA-256: dc793239cb4e92213234e92381ee134c3164283bb77b8815185689bdde3dec6b

Release notes

Two additions aimed at what sites were forking the module to get, and one fix behind them.

Several image styles from one field. Raw Image URL produced a single URL, at the selected style. A component needing a second size — the strip of thumbnails under a full-width visual — had no answer, and at least one site forked the module to hard-code a second URL on the thumbnail style.

Extra styles are now ticked in Manage display and each given a key. They appear next to the existing keys:

{{ data.field_image.url }}          the selected style, as before
{{ data.field_image.thumb.url }}    an extra style, under the key you chose
{{ data.field_image.thumb.width }}

Each extra style is a map of url, width and height, never a bare URL: the dimensions have to travel with the URL they belong to. The key names a style, not a URL.

Only the ticked styles are stored, so adding an image style to the site never moves the exported display config. A key colliding with url, alt, title, width, height or with another style's key is refused when the display is saved, rather than letting one key quietly overwrite another.

This is not the responsive srcset problem, which is several sizes of one rendering. Core's Responsive Image module answers that one.

A formatter for file fields. The module covered no file field at all, which pushed sites to write their own. raw_file exposes:

['url' => …, 'name' => 'notice.pdf', 'description' => '', 'mime' => 'application/pdf', 'size' => 182344]

The size stays in raw bytes — turning it into "1.2 MB" is presentation, and the template is where the reader's locale is known. View access on the file entity is checked, so a private file does not leak through the data, and a file left unticked by Enable Display field stays out, the same semantics as the core file formatters.

Fixed: the image styles are declared as config dependencies, which they never were. Deleting a style left the display pointing at one that no longer existed. The main setting now falls back to the original image, and a deleted extra style is dropped from the setting.

Updating: nothing to do. No breaking change — a display with no extra style ticked produces exactly what it produced in alpha6, and raw_file only adds a formatter to the list.

Created by: kgaut
Created on: 1 Aug 2026 at 11:29 UTC
Last updated: 1 Aug 2026 at 11:29 UTC
New features

Other releases