67 points · by tosh · 6y ago · 42 comments
Lots of other discussion on this though: https://hn.algolia.com/?q=bpg+bellard
Royalty Free.
Purely from a Web Image usage perspective, Jpeg XL is very competitive in terms of features and performance. Also Royalty free.
There are some concerns:
Non-native support requires non-static pages - even for something that will always appear to be the same, things like noscript will kill the page;
Hardware acceleration will need to be done in general terms - something like WebGPU will help, but it will still be less efficient than hardware acceleration (and that could be a problem for mobile).
You're suggesting to load a whole new parser, parse images at a higher level than browsers can (i.e. slower and with less concurrency), and make `<img>` a whole lot harder to manage.
That's not worth it at all unless the savings are substantial (say BMP vs JPEG)
Performance is not a factor in this.
Besides, do you really want to download and parse a codec for every page?
However, it does present a viable path to the introduction of new codecs independent of the bogged up process that still has us using GIF and JPEG despite the fact that they've been known for years to be shite.
Also, WASM supports a binary form, so you can skip parsing.
https://gitlab.com/wg1/jpeg-xl
https://aomediacodec.github.io/av1-avif/
"Hope you're not worth suing" may be an OK strategy for many people using BPG on their websites, but it's a blocker for wide adoption of the format. The licensing situation is so bad, that the industry went all behind the AV1 alternative, and the AVIF format rides that wave.
Discussion 2 years ago: https://news.ycombinator.com/item?id=17587684
Discussion 6 years ago: https://news.ycombinator.com/item?id=8704629
Those who can be called genius are few in the world, but Facrice Bellard is certainly among them.
That's clever and a bit counterintuitive.
AFAIK, there is also less banding issues even in 8-bit content, and the filesize is generally smaller too. The biggest reason against its usage is more computational power, though.
> According to Bellard's site BPG may be covered by some of the patents on HEVC, but any device licensed to support HEVC will also be covered for BPG. Patent issues may prevent JPEG replacement by BPG despite BPG's better technical performance.
So it sounds like you’re ultimately correct.