News for hackers. Stuff that matters.
Re:PNG Is Back by pornel on Wednesday June 25, 2025 @11:19AM (#44378333)
It's absolutely possible. Browsers even routinely pause playback when images aren't visible on screen.

They just don't have a proper UI and JS APIs exposed, and there's nothing stopping them from adding that.

IMO browsers are just stuck with tech debt, and maintainin a no-longer-relevant distinction between "animations" and "videos". Every supported codec should work wherever GIF/APNG work and vice versa.

It's not even a performance or complexity issue, e.g. browsers support AVIF "animations" as images, even though they're literally fully-featured AV1 videos, only wrapped in a "pretend I'm an image" metadata.

Re:PNG Is Back by joquarky on Wednesday June 25, 2025 @01:02PM (#44379530)
I wish browsers still paused all animations when the user hits the Esc key. It's hard to read when there are distracting animations all over most pages.
Re:PNG Is Back by nextaccountic on Wednesday June 25, 2025 @01:20PM (#44379733)
> They just don't have a proper UI and JS APIs exposed, and there's nothing stopping them from adding that.

Browsers should just allow animated gifs and apngs in <video>

Re:PNG Is Back by account42 on Thursday June 26, 2025 @05:36AM (#44385700)
More important would be to allow (silent) videos in <img>.