Install
Works with Drupal: ^9 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
12.38 KB
MD5: 33caebcb5b091b8b90d0c8deebe06e53
SHA-1: 9adfc29a03c88728f39e5bea0b3cd5b85a830fbc
SHA-256: 2c31ad970eab6d6fa4768fb4d20e2ca265534dad7f4e036fd95a08932e7fcbfc
Download zip
15.1 KB
MD5: ab5bc2ff763711dd214268e3e505ecd8
SHA-1: 7b184fdc91ccde47314eaf318aa1670a5c653689
SHA-256: 9804c6d7f8ce1f59666119c5b48c68692ce028922dd900c1277195d437859b8c
Release notes
Bug-fix release.
- "None (original image)" now clears the image style instead of rebuilding the image element by hand, so the image link, the attributes added by other formatters (loading, fetchpriority, decoding) and the cache metadata are preserved. The old code also read
#item_attributes, deprecated since Drupal 11.4 (change record). - The override now checks
ImageStyle::supportsUri()first: files the style cannot process (e.g. SVG with the GD toolkit) fall back to the original image instead of triggering core's "Could not apply image style" warning — on Drupal 11.4+ that warning also hides the image entirely. - Image elements keep their cache metadata, and the render cache keys now include the overridden image field.
- Settings names and schema unchanged — no update needed in existing displays.