webp-express icon indicating copy to clipboard operation
webp-express copied to clipboard

Support AVIF image format

Open adamradocz opened this issue 4 years ago • 11 comments

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.

adamradocz avatar Aug 05 '20 07:08 adamradocz

Would love to see this too. Automatic conversion, as the plugin does for WebP, would be awesome.

Thank you so much

quicoto avatar Aug 23 '20 09:08 quicoto

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.

Ruzgfpegk avatar Aug 26 '20 03:08 Ruzgfpegk

If I have to upload avif images manually is still better than nothing.

adamradocz avatar Aug 26 '20 11:08 adamradocz

Sounds interesting... And thanks for the link, @Ruzgfpegk. I shall investigate

rosell-dk avatar Aug 26 '20 14:08 rosell-dk

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?

gu-stav avatar Sep 08 '20 15:09 gu-stav

It will take a long time until broad support lands, these things always take time .. but would be great in the long run

replicant64 avatar Sep 10 '20 18:09 replicant64

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

Ruzgfpegk avatar Sep 15 '20 02:09 Ruzgfpegk

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 🦊

S1SYPHOS avatar Sep 15 '20 05:09 S1SYPHOS

You mean avif-convert?

Ruzgfpegk avatar Sep 15 '20 07:09 Ruzgfpegk

I meant what I said, but I guess you are right, too ;) that would indeed be the better place to discuss AVIF support!

S1SYPHOS avatar Sep 15 '20 11:09 S1SYPHOS