6 ms·
BPG Image Format
- theandrewbailey 6y agoHasn't JPEG XL and AVIF largely surpassed BPG in popularity? AVIF is already in browsers. https://jpeg.org/jpegxl/ https://jpeg.org/jpegxl/ https://gitlab.com/wg1/jpeg-xl https://gitlab.com/wg1/jpeg-xl https://aomediacodec.github.io/av1-avif/ https://aomediacodec.github.io/av1-avif/ https://github.com/AOMediaCodec/libavif https://github.com/AOMediaCodec/libavif https://caniuse.com/avif https://caniuse.com/avif
- deleted 6y ago[deleted]
- masklinn 6y agoBPG has never been very popular, though the “official” variant (heif which is the same idea by the MPEG) is supported by windows, macOS, iOS and Android.
- pornel 6y agoYes. BPG (and H.265 it uses) may be technically excellent, but H.265 is a commercial patent-encumbered codec. Patents cover any implementation, even free and open-source ones, so in countries that allow software patents BPG is illegal to use without a patent license for H.265. "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. https://aomedia.org/ https://aomedia.org/
- tpmx 6y agoSo it's like WebP but based on HEVC instead of VP8.
- tinus_hn 6y agoUnfortunately its patented.
- buzzerbetrayed 6y agoAccording to Wikipedia: > 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.
- seishan 6y agoThis is by the same person that wrote ffmpeg. Discussion 2 years ago: https://news.ycombinator.com/item?id=17587684 https://news.ycombinator.com/item?id=17587684 Discussion 6 years ago: https://news.ycombinator.com/item?id=8704629 https://news.ycombinator.com/item?id=8704629
- usr1106 6y agoand qemu
- messe 6y agoand tcc (the tiny C compiler). Those who can be called genius are few in the world, but Facrice Bellard is certainly among them.
- schoolornot 6y agoI wish the Computer History Museum would do an "Oral History" video with him. Such a fascinating individual with monumental contributions to tech.
- pwdisswordfish4 6y agoAnd my axe.
- dang 6y agoAlso https://news.ycombinator.com/item?id=10604465 https://news.ycombinator.com/item?id=10604465 from 2015. Thanks!
- pmoriarty 6y agoand http://jslinux.org/ http://jslinux.org/
- jjcm 6y agoBellard is obviously a technical genius. I have no doubt that BPG is competitive on a technical aspect. Politically though AV1 is looking like it has the best chance of unseating jpg. Near universal buy-in by browsers/OSes/hardware makers, hardware acceleration starting to roll out, and patent free. Lots of other discussion on this though: https://hn.algolia.com/?q=bpg+bellard https://hn.algolia.com/?q=bpg+bellard
- yarg 6y agoWill it necessarily matter though? In a WASM context format starts to matter less since content in arbitrary codecs can be downloaded and decoded. 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).
- gigel82 6y agoAlso CORS: you can hotlink images from everywhere, but if you try to actually put those bits in a Buffer (as you'd need with BPG) the browser won't let you unless CORS is properly set up for the specific source-target URLs (affects things like image CDNs and so on).
- wmf 6y agoChrome and Firefox are already implementing AVIF so using WASM to decode a different, more-patented format seems pointless.
- tambourine_man 6y agoHardware acceleration, as you mentioned, will never be as efficient. Besides, do you really want to download and parse a codec for every page?
- yarg 6y agoNo, not for every page - it will very much be use case dependent. 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.
- viraptor 6y ago> 14bit (...) It gives a higher dynamic range (which is important for cameras and new displays) and a slightly better compression ratio (because there are less rounding errors in the decoder). That's clever and a bit counterintuitive.
- m45t3r 6y agoYeah, I remember reading years ago a paper explaining the same for H.264 and why 10-bit encoding matters (even for 8-bit content). It was fascinating reason, btw. 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.
- ksec 6y agoWas there really a paper on the topic ? I thought it was x264 mailing list from Jason Garrett-Glaser / Dark Shikari.
- touchpadder 6y agoto wait until BPG becomes an open format would take a lifetime. I've been waiting for years now. Fortunately webp is now widely adopted so no need for waiting for bpg anymore
- sreekotay 6y agoThe problem is the JS decode mean images in practice load slower than competing formats.
- pkamb 6y agobut how is it pronounced?
- deleted 6y ago[deleted]
- person_of_color 6y agoNeural compression is the future, not this.
- rootw0rm 6y agoonce upon a time i designed an automated framework to attempt to brute force optimal x264 encoder settings for a small library of sample clips. i used lossless BPG for storing select keyframes from various test runs before analysis. i soon learned that having software try to decide the quality of one image versus another is not a terribly easy problem to solve. thanks for the trip down memory lane =)
- severak_cz 6y agoOf these new image format I am a fan of FLIF http://flif.info/index.html http://flif.info/index.html
- pezezin 6y agoFLIF has been integrated has the lossless mode of JPEG XL, the next JPEG standard.
- kernelbugs 6y agoFLIF was superseded by FUIF and then by JPEG XL, but it hasn't been fully integrated. JPEG XL has parallel decode and uses MAANS entropy encoding instead of MANIAC, which results is slightly less compression for some situations (but faster decode). That said, I certainly agree that JPEG XL is already very impressive and hopefully the next majorly supported image format.
- garaetjjte 6y agoPractically superseded by HEIF, which is same idea but in complicated ISO container: https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format https://en.wikipedia.org/wiki/High_Efficiency_Image_File_For...
- kevin_b_er 6y agoUnfortunately HEVC is a patent minefield and unless you have deep pockets to stomach patent trolls, implementing anything with HEVC is a risk.