by rcme · 3y ago · 0 comments
JPEG has been hitting its limits for an extended period:
JPEG can only do 8-bit color depth, no HDR.
JPEG can only do lossy, with no lossless support
JPEG lacks good compression for graphics images
JPEG cannot do alpha transparency
JPEG cannot do animations
JPEG does not support multiple layers
JPEG compression efficiency is 30 years old and not as good
JPEG comes with annoying compression artifacts we all love
Banding, Noise, Blockiness, and more banding.
For much more, here is a comprehensive overview: https://jpegxl.io/articles/faq/Of course there is. Better compression than WebP, and unlike AVIF, it supports progressive decoding, which is super important for users on a slow network. Although AVIF can sometimes produce 50% smaller size files than WebP, many site owners will opt for WebP anyway because it has progressive image decoding, so their website will display something while an image is nothing rather than nothing until the whole image is loaded. With that said, JXL achieves comparable compression to AVIF, and it suffers way less from generation loss, too.
https://jpegxl.info/why-jxl.html
Basically lossy WebP and AVIF are video codecs, which are designed for the kind of quality you want when you can only see an image for 40 milliseconds or less. For still images, higher fidelity is usually desired but the video codecs tend to struggle to even keep up with the old JPEG at those operating points.
Similarly, video codecs are not designed for progressive decoding (rendering previews of a frame based on partial data), because that's a feature that doesn't make much sense for video. For still images on the web, progressive decoding is considered a desirable feature though to improve the user experience.
- This can (in theory) be solved in other formats by improving the encoder, but the current jxl encoder is pretty much "set it and forget it" in terms of getting a good quality; other encoders are far more variable (e.g. I would use a different quality setting for B&W vs color and line-art vs photo).
- In others' testing (I don't use this feature) JXL has better lossless compression.