AVIF support not detected correctly

Created on 26 June 2023, over 1 year ago
Updated 3 October 2023, 12 months ago

Problem/Motivation

Our ImageMagick does have AVIF support enabled but ImageMagick::convert() returns FALSE.
This happens because ImageFactory::getSupportedExtensions() returns "avif" in lowercase but the module looks for "AVIF".

Steps to reproduce

  1. Enable the imagemagick module and configure it to support AVIF:
      AVIF:
        mime_type: image/avif
        enabled: true
      
  2. Enable the avif module and configure it to use ImageMagick.
  3. Browse to an AVIF URL.
  4. It returns the original PNG/JPEG image.

Proposed resolution

The condition should check for "avif" in a case insensitive way.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024