webp-express
webp-express copied to clipboard
Support AVIF image format
Avif image format will be officially supported on the next Chrome. It would be awesome if you could support it. It's okay even if you don't convert images, just use the manually uploaded ones.
Would love to see this too. Automatic conversion, as the plugin does for WebP, would be awesome.
Thank you so much
It would be interesting indeed, but is there an official encoder binary already that could be integrated into the plugin?
For now developer Kagami did an encoder in Go using libaom, but it's quite large (+26MB to support Windows and Linux x64) and I don't know if it's still maintained: https://github.com/Kagami/go-avif
EDIT: See associated article.
If I have to upload avif images manually is still better than nothing.
Sounds interesting... And thanks for the link, @Ruzgfpegk. I shall investigate
This would be amazing. Saw an interesting comparison today and the results are impressive: https://jakearchibald.com/2020/avif-has-landed/
If my understanding is right ImageMagick already has support, but it's still pending in libgd.
Maybe offer the AVIF conversion only if at least one of the installed libraries supports it?
It will take a long time until broad support lands, these things always take time .. but would be great in the long run
I stumbled upon another encoder, with way more options than go-avif: https://github.com/link-u/cavif
Releases are also lighter (<3 MB for Win64/Lin).
For now I'm using the in-browser (client-side) Squoosh (source) mentioned in the first link of @gustavpursche's reply but it's quite slow, being JS-based.
That being said (maybe I should create another ticket for this ?) I wonder if integrating Squoosh's client-based JS encoders could be another option in the future, to avoid taxing the webserver's CPU (but as WebP Express can be installed as a service, I guess there's already a solution for this).
There are new libraries emerging every week now, since this topic gains a lot of traction lately.
Please continue discussion over at webp-convert, the underlying library.
Any work integrating AVIF will primarily take place there! This saves us following two issues regarding the same topic 🦊
You mean avif-convert?
I meant what I said, but I guess you are right, too ;) that would indeed be the better place to discuss AVIF support!