Open ironprogrammer opened 2 weeks ago
It seems like we would need to add the --with-avif
argument to the build when GD support is added.
@ironprogrammer would you be open to adding support for AVIF? I'm happy to help you with any questions.
Roughly, you would need to:
--with-avif
argument similarly how we add the --with-webp
argument or any other.npm run recompile:php:web:asyncify:8.1
.npm run recompile:php
to recompile all other PHP versions.If this takes off, it's a good opportunity to organically document the workflow for enabling further PHP extensions just by discussing the steps and stumbling blocks :heart:
Enhancement description
Because WordPress can support AVIF, it would be terrific if Playground could do the same when running GD in PHP 8.1 and up. Possible use cases include media plugin testing, having a sandbox to tinker with migrating a site's default from JPEG to AVIF, or testing WP core media handling directly.
Here's a link to test Playground with the Modern Image Formats plugin. The plugin checks if AVIF is supported, but you can also verify in Site Health's Info > Media Handling section.