lando / php

The Official Lando PHP plugin.
https://docs.lando.dev/php
GNU General Public License v3.0
16 stars 17 forks source link

Add AVIF support to GD. #116

Open mlander opened 5 months ago

mlander commented 5 months ago

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).

NicolasGraph commented 2 months ago

+1