News for hackers. Stuff that matters.
Re:Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG by mikae1 on Saturday October 18, 2025 @04:31AM (#45625850)
>> What should we use instead?

> AVIF, JpegXL, maybe even WebP (lossless mode).

Definitely not lossless AVIF. It is less efficient than lossless WebP. WebP is supported everywhere, but is not much more efficient than optimized lossless PNG. Lossless JPEG XL has the best lossless compression but can't be used for web without fallbacks.

So, for offline archival: JPEG XL.

For web use without fallbacks: lossless WebP.

For web use with lossless WebP fallback: JPEG XL.

There are no comments on this comment yet.