Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 20.03 KB
MD5: 3c10c241c3c75ac6c1a1bb4b7b9385fa
SHA-1: 75583b761a6f14f1efbbb0053cb0eab46538c728
SHA-256: eab504d5f99378a9cff8c07d91ac7acd147147b2e006a9abfd0101505f97efeb
Download zip 26.54 KB
MD5: 3c0bbf8e14025e535201fa0dceb57c8f
SHA-1: a6be190f840aad3a151f3dd43ee27468836a911d
SHA-256: 38c8af0755c1efdbd7975ff9e4037af3abb9a46f1d5eeb78676f26618ef4d318

Release notes

The logo attributes are now written on the server for any theme, which fixes layout shift (CLS) and alt="Home" on themes based on Starterkit or Classy.

Changes

  • A #post_render callback on the Site branding block writes src, width, height, alt, title, loading, fetchpriority and decoding into the logo <img>, without duplicating attributes or touching other images.
  • width/height also without an image style, and from the file for SVG.
  • Fetchpriority/decoding: "Keep the theme value" (default) or new "Remove" option.
  • The logo always follows the theme settings; the module no longer stores its own logo_path, so a new upload or saving the global appearance form can no longer bring back an old logo.
  • Module settings are no longer saved into system.theme.global or <theme>.settings. Update 10002 removes the keys already saved there.
  • Image styles are only applied when the image toolkit supports the format; root-relative URLs.
  • Proper cache tags for the image style and theme settings; removed the site-wide cache clears and image style flushes on every save.
  • The JavaScript fallback is now optional and off by default ("Also fix logos printed outside the branding block").
  • Warning when the contrib webp module would build the derivative from a .png/.jpg next to the .webp logo.
  • Debug panel: escaped output (XSS fix), logo source and webp warning; its cache context is only added while debug mode is on.
  • Requires Drupal 10.3 or later.

Upgrade

composer update drupal/logo_image_enhanced
drush updb -y && drush cr

If your theme prints the logo outside the Site branding block, enable "Also fix logos printed outside the branding block" again after updating.

Created by: nelo_drup
Created on: 2 Nov 2026 at 23:29 UTC
Last updated: 2 Nov 2026 at 23:30 UTC
Bug fixes
New features

Other releases