3 ms·
> Now that WebP is widely supported by browsers and operating systems, there's really no downside to using it. It's much more flexible than JPEG or PNG and offe
by CodesInChaos 4mo ago
> Now that WebP is widely supported by browsers and operating systems, there's really no downside to using it. It's much more flexible than JPEG or PNG and offers better compression than both of them.
I'd probably skip WebP, and go straight to AVIF at this point. I believe all modern browsers support it, and it compresses better than WebP.
- AndrewStephens 4mo ago> I'd probably skip WebP, and go straight to AVIF now. That is my assessment as well. The compression ratios with AVIF are ridiculous compared to older formats.
- conradkay 4mo agoIt's great but you definitely pay for it. Encoding can be really slow, and to a lesser extent decoding as well. So I still end up using .jpg quite often, or .webp as a good middle ground
- CodesInChaos 4mo ago[dead]
- juliobbv 4mo agoYou can adjust how much "effort" the avif encoder puts on images. The default speed in libavif (-s 6 in avifenc) is fast enough, and it has been used by big CDNs to encode AVIFs for years. You can make the encoder as fast or slow as you'd like, depending on your compute/compression efficiency trade-off requirements.
- pseudosavant 4mo agoTIL that AVIF has been supported across all browsers since January 2024. Definitely looks like something I can start using.
- Self-Perfection 4mo agoIn lossless mode WebP is superior to AVIF.
- thrw045 4mo agoPersonally I dislike all of these new formats. Shame that most big sites use either avif or webp. When I save these images to disk I always convert to png because storage isn't an issue and bandwidth isn't an issue. Oh well...
- josephg 4mo ago> storage isn't an issue and bandwidth isn't an issue. Oh well... Right; the issue is compatibility. But that doesn't get solved if we collectively stick to the past and only use old formats like gif and jpeg. Compatibility gets fixed by using a format, and then complaining to software developers when their software isn't compatible with our workflows. Eventually compatibility improves, and we get our cake and eat it too. Better storage and bandwidth use. And compatibility across all our software. It just takes time.