Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AVIF support to GD. #116

Open
mlander opened this issue Jun 13, 2024 · 1 comment
Open

Add AVIF support to GD. #116

mlander opened this issue Jun 13, 2024 · 1 comment

Comments

@mlander
Copy link

mlander commented Jun 13, 2024

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

@pirog pirog added the php label Jun 16, 2024
@rtfm-47 rtfm-47 transferred this issue from lando/lando Jun 16, 2024
@rtfm-47 rtfm-47 added Needs Triage and removed php labels Jun 16, 2024
@NicolasGraph
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants