Jon Sneyers Profile picture
Jul 21 9 tweets 4 min read
Overall, JPEG XL at default cjxl speed outperforms AVIF even when using a very slow libaom setting (s1, >30 times slower). At a more reasonable libaom s7 (about half as fast as default cjxl), the improvement JPEG -> AVIF is comparable to the improvement AVIF -> JPEG XL. Image
Of course behind the overall picture, there are differences depending on the image contents. For example, for images of sports or rooms, AVIF actually does (slightly) better than JPEG XL (if you don't mind the extra encode time). ImageImage
For landscapes or portraits, on the other hand, JPEG XL has a clearer advantage. ImageImage
The video-based image formats (WebP and AVIF) particularly struggle with images containing subtle textures, like clothing or cloudy skies. For those, they can be even worse than (moz)JPEG. Overly aggressive deblocking filters are probably to blame for this. Image
Encoder consistency is another aspect, very important for deployment. "mozjpeg q80" has an average subjective quality (DMCOS) of 85, with a standard deviation of 5, so it can easily be 80 or 90. More complicated encoders tend to have less consistent results. Except for JPEG XL. Image
If you try to improve encoder consistency — or just evaluate encoders — using objective metrics (as opposed to subjective testing, which is of course much harder to do), be careful what metric you use. Simple metrics correlate only poorly. Image
What about HEIC? And better, proprietary AVIF encoders? We also have data on that. At half the encode speed of cjxl, HEIC (x265) more or less matches JPEG XL. Aurora, at one third the speed of cjxl, matches it at the high end but not at the low end (somewhat surprisingly). Image
One category the video-codec derived formats are particularly good at, is (lossy) non-photo images: logos, text, diagrams etc. On such images they get excellent results. JXL has some catching up to do there (which it can, there is still significant room for encoder improvements). Image
Note that hardware encoders (not tested here) will almost certainly perform significantly worse than software encoders, since hw design is inherently about cutting corners. E.g. hw JPEG is lot worse than mozjpeg, Apple's hw HEIC encode is likely a lot worse than x265, etc.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Jon Sneyers

Jon Sneyers Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(