WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.64k stars 258 forks source link

Add AVIF support #1953

Open ironprogrammer opened 2 weeks ago

ironprogrammer commented 2 weeks ago

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.

bgrgicak commented 1 day 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:

adamziel commented 1 day ago

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: