Tuesday, October 20, 2026 Today’s Paper
Log in Join free
Vol. I · No. 22 Texas Edition
Tuesday, Oct 20
Texas first. Then the world.
Always free Updated just now
Read. React. Discuss.
Tech

Show HN: A Safari extension to accelerate animated WebP images

By 76SlashDolphin 2 min read 3 views 0 comments

Hi HN!The other day I had to do some work with a lot of large animated WebP files on my Macbook running Safari and noticed that it handles them very poorly. They load slowly and it seems like they're constantly being decoded, also with really poor performance. Here's a website with similar images to what I was working with: https://colinbendell.github.io/webperf/animated-gif-decode/w...On that website, my M1 Macbook Air decodes the boat and smoke images at fewer than 5FPS, and the brown underwater office one has a constant stutter. The performance on my iPhone 15 Pro is very similar with the additional annoyance that I have to manually "Play" each animation.This was one of those small things that bothered me during my work week so on the weekend I decided to see if I can do something about it. I started by experimenting with the decoder itself and noticed that if you decode a static WebP image it's pretty fast - approximately as fast as other browser engines. It's actually fast enough to fit in 0.16ms. So I thought "what if I just take the WebP animation decode the frames one by one with the internal decoder and just plonk them on a canvas" and after quickly vibe coding the…

Hacker News (Newest) Original story · github.com
Read the full story

Discussion (0)

No comments yet. Start the conversation!