Skip to content

Add AVIF support to GD. #116

@mlander

Description

@mlander

AVIF is picking up support(https://caniuse.com/avif) across most major browsers, so it would be great if we can get support in lando.

I did try to enable AVIF in GD following:
https://php.watch/versions/8.1/gd-avif

I was trying:

      - apt-get update -y
      - apt install libavif-dev libaom-dev libdav1d-dev -y
      - docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg --with-webp --with-avif
      - docker-php-ext-install gd

(Unsure if ibaom-dev libdav1d-dev are actually necessary`)

Which shows:
Screenshot 2024-06-13 at 8 26 26 AM

However, I'm still getting errors around missing codec Could not encode image: No codec available in Command line code on line 1. From what I've found so far, it may require an upgrade to Debian 12(Bookworm).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions