Jump to content
thirty bees forum

Image format - webp vs AVIF


312erik123

Recommended Posts

Hello,

Did some experiments with the newly added AVIF capabilities. I was a bit suprised that webp seems to perfom better across all the image sizes that I use: 

image.png.ef0baff63e15e79081bd56df54a176c2.png

What are you guys using?

Br

Erik

Link to comment
Share on other sites

It's hard to compare, as it's very subjective.

You have to tweak the  Image quality settings. For each algorithm it is slightly different.

avif will have better image sizes as you increase compression = lower image quality settings

[ quality 50 ]
5950 - 1-Niara_thickbox.avif
8342 - 1-Niara_thickbox.webp


[ quality 70 ]
10591 - 1-Niara_thickbox.avif
10196 - 1-Niara_thickbox.webp

[ quality 90]
26193 - 1-Niara_thickbox.avif
19052 - 1-Niara_thickbox.webp

The nice think about avif is that it generates much less blurry images even at low quality. At q=50, avif is much nicer than webp at the same quality. It is probably at the level of webp at q=70.

If you want to have high-quality images, you should probably keep using webp and q=90.

If you want to have fast shop with good-enough images, you might want to opt for avif with lower q

  • Like 1
Link to comment
Share on other sites

@datakick  After my tests of the latest version of "bleeding edge", I think that the support of system images in WEBP and AVIF formats already works very nicely.
However, I noticed that some native modules have their own limitations when it comes to uploading image files.
For example, the "homeslider" module:
const ALLOWED_EXTENSIONS = [ 'jpg', 'jpeg', 'gif', 'png' ];

 

  • Like 1
Link to comment
Share on other sites

7 hours ago, Yabber said:

@datakick  After my tests of the latest version of "bleeding edge", I think that the support of system images in WEBP and AVIF formats already works very nicely.
However, I noticed that some native modules have their own limitations when it comes to uploading image files.
For example, the "homeslider" module:
const ALLOWED_EXTENSIONS = [ 'jpg', 'jpeg', 'gif', 'png' ];

 

Right. The module rewrite is not yet done and it might need some tweaks in the core again. Some modules even use their own way of generating images.

But one of my goals was, that in the future, it should be super easy to implement image support in a module 🙂

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...