Live data from Hacker News

FLIF – Free Lossless Image Format

flif.info

1–10 of 153 posts

Re: FLIF – Free Lossless Image Format

#5
If browsers supported APIs to allow "native" image/video/audio codecs to be written in JS, we could support new formats like this without needing any co-operation from the (very conservative) browser vendors. I wrote a proposal for this here: https://discourse.wicg.io/t/custom-image-audio-video-codec-a...

Re: FLIF – Free Lossless Image Format

#6

If browsers supported APIs to allow "native" image/video/audio codecs to be written in JS, we could support new formats like this without needing any co-operation from the (very conservative) browser vendors. I wrote a proposal for this here: https://discourse.wicg.io/t/custom-image-audio-video-codec-a...

So you would need to load up the JS decompressor every single time you load a webpage? Or is there another way to do it efficiently ?

Re: FLIF – Free Lossless Image Format

#9
post #6

If browsers supported APIs to allow "native" image/video/audio codecs to be written in JS, we could support new formats like this without needing any co-operation from the (very conservative) browser vendors. I wrote a proposal for this here: https://discourse.wicg.io/t/custom-image-audio-video-codec-a...

So you would need to load up the JS decompressor every single time you load a webpage? Or is there another way to do it efficiently ?

May be adding support using an extension/addon would work.

Re: FLIF – Free Lossless Image Format

#10
post #6

If browsers supported APIs to allow "native" image/video/audio codecs to be written in JS, we could support new formats like this without needing any co-operation from the (very conservative) browser vendors. I wrote a proposal for this here: https://discourse.wicg.io/t/custom-image-audio-video-codec-a...

So you would need to load up the JS decompressor every single time you load a webpage? Or is there another way to do it efficiently ?

That's the downside - but if a JS decompressor library is served from a CDN, it only has to load it on the first site that uses it, like using jQuery from a CDN. Service Workers can also serve content like this from an offline cache, so it doesn't have to hit the server again on later visits.
Post reply on HN