frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

JPEG XL vs. AVIF for web use-cases

https://jakearchibald.com/2026/jpeg-xl-vs-avif/
40•farlight•1h ago

Comments

shmerl•36m ago
I think one overlooked aspect is that AVIF is container based. Meaning that once sites support, when AV2, AV3 etc. will come out, there won't be a need to go through another very difficult phase of sites adoption - it will still be AVIF just with newer codec inside, and it will be just up to browsers to catch up on newer versions and newer codecs will address technical needs as times goes.

JPEG XL doesn't have that benefit, while sites adoption is arguably a worse issue than browser adoption.

To demonstrate the point even for AVIF itself - it has been in the browsers for a while. Can you use it on common sites? Good luck if you can, even major sites like GitHub and GitLab have issues with it due to some site code depending on hardcoded list of known formats or other similar problems.

pornel•15m ago
The container is useless. Files based on a newer codec won't display anyway.

ISO-BMFF container is bloated and needlessly complicated. AVIF decoders didn't even want to reuse existing MP4 libraries for it due to all the baggage it brings, and implemented their own minimal parsers.

AVIF would have been better off with a simple wrapper similar to RIFF/PNG or extending AV1's own OBU header (which for inexplicable reason gets its data duplicated inside the HEIF container and then implementations are required to verify that both copies agree!)

I hope AVIF will skip AV2. We don't need yet another almost-identical format to migrate to.

arendtio•15m ago
Can someone please explain the downvotes?
theandrewbailey•10m ago
> I think one overlooked aspect is that AVIF is container based.

Many other image formats are. AVIF uses HEIC, the same container that HEIF does.

> when AV2, AV3 etc. will come out, there won't be a need to go through another very difficult phase of sites adoption - it will still be AVIF just with newer codec inside, and it will be just up to browsers to catch up on newer versions and newer codecs will address technical needs as times goes.

Fingers crossed, but AV2-based AVIF specs have yet to be finalized, so who knows.

jaffathecake•7m ago
This doesn't make sense to me. There's enough content negotiation out there that AV2 will need a new content-type parameter. Feature detection is important to browsers.
quentindanjou•34m ago
Great article!

Overall I am getting that AVIF is better on the web...unless Lossless is needed, in that case better take JPEGXL.

dc3k•32m ago
I really hope that some day Firefox supports HDR AVIF images
jaffathecake•12m ago
It's not AVIF that's the issue, the blocker is supporting HDR in general.
phoronixrly•31m ago
Ah, Chrome ships JXL when we already have a better codec for the web!
lern_too_spel•21m ago
PDF standardized on JPEG XL, and Chrome ships with a PDF renderer.
0xy•23m ago
AVIF is a lifesaver for animation with separate transparency layers so the transparency can change position frame by frame. The only other alternative is WebM which has Safari limitations.
adzm•17m ago
Is there an advantage to this as a separate layer compared to just having an alpha channel baked into the image data itself? If not premultiplied then it would not affect the other channels either.
jaffathecake•11m ago
But the performance is so bad it isn't worth using. You're better off encoding a double height AV1 and mashing it together with WebGL https://jakearchibald.com/2024/video-with-transparency/. That's how bad the situation is.
adzm•19m ago
> AVIF is basically the keyframe format of AV1 video, with a bunch of still-image-specific optimisations thrown in. Animated AVIF however, is pretty much just a repackaging of AV1 video. You can convert an AV1 MP4 to AVIF and back losslessly - it's just a container change. That's why it performs so much better, because it's built for motion.

So, is animated AVIF only keyframes / p-frames, where each frame is independent from the other? I was under that impression, uncertain if there are any other capabilities it might have (like only updating part of the canvas when only parts change, like GIF supports)

jaffathecake•13m ago
No. I used to think this too, but it isn't limited to keyframes.You can convert an AV1 MP4 to AVIF and back losslessly - even if it has non-keyframes. It's just a different container. It has the full AV1 capability. Plus transparency.
adzm•15m ago
JPEG transcoding is one of the neatest features of JXL; there is so much existing jpeg out there. Eventually that may be unnecessary, but it's looking like this could already save a significant amount of space for photo archive backups for example.
Theodores•10m ago
Jake's interest in F1 hasn't waned, which is good to see. I am presuming that picture of an Alpine/Renault at Goodwood is his 18Mb photo, but I could be wrong. Neither has his interest im image compression waned, which is also good to see. But why the move from Google to Firefox?

I am still on webp, thinking that I am on the bleeding edge in a world where artworkers are obsessed with pixels with JPG/PNG as the only formats they know, which is an advance on GIF.

Every browser advertises what formats it will accept and if it is in 'data-saving, low bandwidth mode', so I just configure the CDN to keep the names the same '.jpg' but to send the bestest format for the situation/browser, whether that be webp or AVIF, fetching super-high resolution files from the origin server, outputting them in 'retina' resolution with none of those 'picture' elements referencing half a dozen 'responsive' sizes.

In this way nobody has to care what image format is being served, and if it is deemed that everything is way too compressed, the CDN can be flushed of the cached images, quality increased, and cache rebuilt.

It looks like I will need to update my server configuration to use JPEG XL in the usual five years' time, given the lack of any revolutionary benefit.

bitpush•6m ago
I'm only casually following JPEG-XL and my impression from previous reading here on HN was that JPEG-XL was the best solution available for a wide variety of usecases, but it looks like numbers dont match that claim?
throw0101c•5m ago
Perhaps useful:

* https://caniuse.com/?search=avif

* https://caniuse.com/?search=jpegxl

/dev/null: social network for developers

https://dev-null.sh
32•mnapoli•24m ago•22 comments

Apple ML Research: Muse Spark Open with MLX on Mac Studio

https://machinelearning.apple.com/research/mlx-distributed-inference
136•antipaul•3h ago•71 comments

JPEG XL vs. AVIF for web use-cases

https://jakearchibald.com/2026/jpeg-xl-vs-avif/
46•farlight•1h ago•23 comments

Big Fish: Exploiting a 37-Year-Old Kernel Bug in OpenBSD

https://calif.io/research/big-fish
91•rs_rs_rs_rs_rs•2h ago•20 comments

Desire to Move Permanently to U.S. at New Low

https://news.gallup.com/poll/708614/desire-migrate-drops-new-low.aspx
86•karakoram•44m ago•60 comments

Piramidal (YC W24) Is Hiring

https://job-boards.greenhouse.io/piramidalinc/jobs/4443102009
1•dsacellarius•13m ago

What on Earth Is Dekton?

https://www.worksinprogress.news/p/porcelain
68•wawayanda•2h ago•21 comments

Show HN: Gemini 4 Argon plays StarCraft

https://starskirmish.com/bench/v0-2/
77•__cayenne__•3h ago•43 comments

I Love Software Rendering

https://www.jamesfmackenzie.com/2026/10/13/i-love-software-rendering/
206•speckx•4h ago•144 comments

Stolen Renoir paintings found hidden, and damaged, behind cinder block wall

https://www.cbsnews.com/news/stolen-renoir-paintings-found-behind-wall-france/
42•ohjeez•3d ago•27 comments

Is Liquid Metal Killing Our PCs? Scientific Analysis and a 2-Year Test [video]

https://www.youtube.com/watch?v=eF6bMSjPepM
50•zdw•17h ago•31 comments

RFC8950: Announce IPv4 with an IPv6 next-hop

https://anuragbhatia.com/post/2026/06/rfc8950-announce-ipv4-with-ipv6-next-hop/
48•porridgeraisin•3h ago•21 comments

Woman who rescued injured crow keeps getting 'thank-you gifts' from birds [video]

https://www.youtube.com/watch?v=sjNpfz4UzqU
713•johnnyApplePRNG•3d ago•222 comments

US Rep Announces Congressional Legislation to Protect Video Game Ownership

https://ritchietorres.house.gov/posts/rep-torres-announces-power-to-the-players-act-legislation-t...
64•DeepLogin•1h ago•36 comments

Yet another way to invoke functions without parentheses

https://blog.ikaes.de/yet-another-way-to-invoke-functions-without-parentheses/
209•aragonite•2d ago•93 comments

Inside Polymarket's paid quote-retweet esports program

https://www.readergrev.com/p/polymarket-paid-quote-retweet-esports-investigation
58•paimapi•1h ago•41 comments

How to make System 1 LLMs show System 2 competencies?

https://onlinelibrary.wiley.com/doi/epdf/10.1002/aaai.70113
19•porridgeraisin•3h ago•11 comments

Postgres 19 delayed after AI reviewers find more bugs than humans can fix

https://www.theregister.com/databases/2026/10/16/postgres-19-delayed-after-ai-reviewers-find-more...
45•magoghm•1h ago•8 comments

Show HN: rStation – A shared research lab for your AI agents

https://rstation.ai/
24•stephenchung•2h ago•14 comments

Show HN: OneDeploy – Managed open-source apps with nightly backups and TLS

https://onedeploy.co
16•relatedcode•1h ago•8 comments

The Economic Complexity of the Western Roman Empire

https://www.michelecoscia.com/?p=2613
121•mikk14•2d ago•26 comments

Making 1,750 programmable PCB badges for Canada's biggest hackathon

https://va3ndf.com/blog/hacker-badges/
4•va3ndf•2d ago•0 comments

How gyroscopes got so small [video]

https://www.youtube.com/watch?v=0Zc_6xB5W3Y
60•surprisetalk•1d ago•29 comments

Show HN: Wonderhop – A daily game: guess what most people say, or what none do

https://wonderhop.io/en/
17•mtlduo•2d ago•22 comments

AI-assisted PCB design for KiCad 10

https://github.com/mixelpixx/Konnect
98•ofrzeta•2d ago•33 comments

What was a Token Ring network?

https://dfarq.homeip.net/what-was-a-token-ring-network/
31•ibobev•3h ago•27 comments

MS Paint Adds Freeform Rotation (2026)

https://blogs.windows.com/windows-insider/2026/02/20/announcing-windows-11-insider-preview-build-...
38•telestew•2d ago•36 comments

Bark: The Toll-Free BBS for 90s Teens

https://blog.bityard.net/articles/2026/October/bark-the-toll-free-bbs-for-90s-teens
31•bityard•5h ago•9 comments

The Folders Programming Language

https://danieltemkin.com/esolangs/folders
182•gurst•12h ago•32 comments

How to Formalize All of Mathematics

https://xenaproject.wordpress.com/2026/10/16/how-to-formalize-all-of-mathematics/
51•practal•3h ago•46 comments