ExtensionMimeTypeGuesser doesn't support .avif

Created on 23 May 2023, over 1 year ago
Updated 7 December 2023, 11 months ago

Problem/Motivation

ExtensionMimeTypeGuesser currently doesn't support .avif files. It returns application/octet-stream for avif images and therefore breaks responsive images with .avif files and the needed fallbacks.

Steps to reproduce

  • Setup Drupal to handle AVIF images using GD
  • Install and configure avif_fallback
  • Make the page display a responsive image of the AVIF file.
  • The type attribute of the avif image is set to application/octet-stream

Proposed resolution

Add the type image/avif for .avif files to ExtensionMimeTypeGuesser.

Remaining tasks

  • Create an MR
  • Write tests?

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

📌 Task
Status

Fixed

Version

10.2

Component
File system 

Last updated 2 days ago

Created by

🇨🇭Switzerland Lukas von Blarer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024