Add an AVIF conversion image styles effect

Created on 12 May 2023, over 1 year ago
Updated 16 May 2023, over 1 year ago

Problem/Motivation

Drupal core has supported WebP as a destination format in the Image style "Convert" effect since Drupal 9.2 in #2340699: Let GDToolkit support WEBP image format .

And until AVIF conversion support can be added in Drupal 10.1+ or higher via Let GDToolkit support AVIF image format Needs work , this module seems like the correct place to add similar support for AVIF for Drupal 9 and below, and particularly when AVIF support is not automatically compiled into the PHP via GD support.

Proposed resolution

Implement a new image style effect for AVIF that generally uses the same UI and approach from the core GD convert functionality. See #2340699: Let GDToolkit support WEBP image format and Let GDToolkit support AVIF image format Needs work for reference.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

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

Comments & Activities

  • Issue created by @jwilson3
  • 🇫🇷France andypost

    Thank you, nice idea to override core while the the patch is not accepted

  • 🇪🇨Ecuador jwilson3

    @andypost Even after the core issue gets in, this issue might still be useful for people who want to use the avif_lib module to convert their images due to hosting restrictions and their version of php that might not be compiled with AVIF compatibility in GD library.

Production build 0.71.5 2024