Error: Call to undefined function Drupal\imageapi_optimize_avif_webp\Plugin\ImageAPIOptimizeProcessor\imageavif() in Drupal\imageapi_optimize_avif_webp\Plugin\ImageAPIOptimizeProcessor\AvifWebp->applyToImage()

Created on 13 November 2023, about 1 year ago
Updated 15 May 2024, 7 months ago

Problem/Motivation

We get the following error, after installing this module via composer and applying this processor to a image style.

Error: Call to undefined function Drupal\imageapi_optimize_avif_webp\Plugin\ImageAPIOptimizeProcessor\imageavif() in Drupal\imageapi_optimize_avif_webp\Plugin\ImageAPIOptimizeProcessor\AvifWebp->applyToImage() (line 83 of /drupal/web/modules/contrib/imageapi_optimize_avif_webp/src/Plugin/ImageAPIOptimizeProcessor/AvifWebp.php).

Steps to reproduce

Used System: Drupal 10.1.5, PHP 8.2.11, DB MySQL 8.0.33, Webserver Apache
the error occures with both latest versions of this module: 1.1.2 and 1.0.9

install via Composer
composer require 'drupal/imageapi_optimize_avif_webp:^1.1'
or
composer require 'drupal/imageapi_optimize_avif_webp:1.0.9'

install the module in drupal backend.

steps after installation:

step 1: on "/admin/config/media/imageapi-optimize-pipelines" added new pipeline
step 2: add processor "AVIF & WebP Deriver"
step 3: set quality for both to 50%
step 4: save the pipeline
step 5: on "/admin/config/media/image-styles" edit a style and add that new pipeline to it
step 6: save the image-style

Error occures

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇩🇪Germany pyretta

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

Comments & Activities

Production build 0.71.5 2024