JPEG XL vs. AVIF for web use-cases(jakearchibald.com)
326 points by farlight 9 days ago | 216 comments
tl;dr: Benchmarking JPEG XL (via libjxl and the newer jixel encoder) against AVIF across photos, screenshots, illustrations, transparency, HDR, and progressive rendering shows AVIF wins in most web scenarios—producing files 15-25% smaller for lossy photos, 30-90% smaller for screenshots/illustrations, and decoding 2-3x faster. JPEG XL's main strengths are lossless compression, transcoding existing JPEGs (9-20% smaller with no quality loss), and occasional outlier images. The author recommends defaulting to AVIF 4:4:4 at high effort, falling back to JPEG XL via jixel only when AVIF produces unusually large files.
HN Discussion:
  • ↓JPEG XL encoders are immature and better results are achievable with different tools/settings
  • ↓Codec comparisons are premature; we should wait for formats to mature before declaring winners
  • ↓AVIF's perceptual quality is actually worse because it hallucinates/erases details
  • ↑Personal experience with AVIF confirms the article's findings over JPEG XL
  • ↑Agrees that video formats should handle animation rather than animated image formats