Results 1 to 24 of 24

Thread: BPG - yet another format to replace JPEG

  1. #1
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts

    BPG - yet another format to replace JPEG

    BPG (Better Portable Graphics) is a new image format. Its purpose is to replace the JPEG image format when quality or file size is an issue. Its main advantages are:
    • High compression ratio. Files are much smaller than JPEG for similar quality.
    • Supported by most Web browsers with a small Javascript decoder (gzipped size: 71 KB).
    • Based on a subset of the HEVC open video compression standard.
    • Supports the same chroma formats as JPEG (grayscale, YCbCr 4:2:0, 4:2:2, 4:4:4) to reduce the losses during the conversion. An alpha channel is supported. The RGB, YCgCo and CMYK color spaces are also supported.
    • Native support of 8 to 14 bits per channel for a higher dynamic range.
    • Lossless compression is supported.
    • Various metadata (such as EXIF, ICC profile, XMP) can be included.
    http://bellard.org/bpg/

  2. Thanks (3):

    Cyan (15th December 2014),Matt Mahoney (15th December 2014),Nania Francesco (19th February 2015)

  3. #2
    Member
    Join Date
    Jun 2013
    Location
    USA
    Posts
    98
    Thanks
    4
    Thanked 14 Times in 12 Posts
    Interesting for mobile devices/embedded platforms since they'll soon include hardware to decode HEVC. Could be a big win for battery life.

    Some food for thought: Chroma subsampling is often used as the human eye is not as sensitive to chroma information leading to a 50% decrease in size. Well, that's true when dealing with lossless encoders. Not sure about lossy ones. Based on the points raised above, it seems that the extra formats are there for compatibility and not for efficiency.

  4. #3
    Member Bloax's Avatar
    Join Date
    Feb 2013
    Location
    Dreamland
    Posts
    52
    Thanks
    11
    Thanked 2 Times in 2 Posts
    Comparision between WebP/JPEG/JPEG2K/BPG grabbed from the second page of another discussion of this very topic.
    BPG seems to be a rock solid contender even now, but I fear that the whole H.265 ordeal may - unfortunately - likely make it legally troublesome. (As we've seen with H.264 image formats.)

    As for chroma subsampling; it's good to have a lot of control, since some images will look much better in YUV 4:4:4 while others may not be hurt from halved chroma channels at all - and in the end it's all about how much effort you want to spend on tweaking the settings towards a visually optimal one.

    (As a complete side note then I'd like to say that denying access to a webserver with no warning is very mean.)
    Last edited by Bloax; 14th December 2014 at 19:54.

  5. #4
    Member
    Join Date
    Apr 2012
    Location
    Stuttgart
    Posts
    448
    Thanks
    1
    Thanked 101 Times in 61 Posts
    Yes, that's essentially HEVC in another container. It's not that we (WG11 and WG1, i.e. MPEG and JPEG) haven't had something like this on the agenda. Actually, there is an initiative of MPEG to standardize an I-frame only HEVC for still-image compression, plus some tiny extra features especially for still images, e.g. arbitrary image sizes and higher bit-depths. The compression performance is, as you see, pretty good (but anyone who complained about JPEG 2000 complexity has still to learn something). The good part is that there's likely hardware support for it in cameras anyhow.

  6. Thanks:

    Marsu42 (17th October 2016)

  7. #5
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    am i doing something wrong? it takes a very, very long time with high CPU usage to compress a 20mpixel picture.

    but yes, the quality is very good.

  8. #6
    Member PAQer's Avatar
    Join Date
    Jan 2010
    Location
    Russia
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by load View Post
    am i doing something wrong? it takes a very, very long time with high CPU usage to compress a 20mpixel picture.
    Lack of SIMD (SSE/AVX & etc).

    http://cbloomrants.blogspot.ru/2014/...08-14-bpg.html

  9. #7
    Member Skymmer's Avatar
    Join Date
    Mar 2009
    Location
    Russia
    Posts
    688
    Thanks
    41
    Thanked 173 Times in 88 Posts
    Is it really you?

  10. #8
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    new xnview 2.30 has BPG (decoding only) support (but uses bpgdec.exe)

    http://newsgroup.xnview.com/viewtopic.php?f=35&t=31313
    Last edited by load; 19th February 2015 at 20:44.

  11. #9
    Member
    Join Date
    May 2008
    Location
    England
    Posts
    325
    Thanks
    18
    Thanked 6 Times in 5 Posts
    Have been testing BPG for about 1.5 months now and yep it's very nice. IrfanView private beta's can view BPGs but not encode them atm, 4.39 maybe out this month to the general public. Didn't post about it here as i'd seen thorfdbg post about it in newsgroups. Only issue i have atm with the encoder is that -m seems todo absolutely nothing ;p
    Last edited by Intrinsic; 19th February 2015 at 17:58.

  12. #10
    Member Alexander Rhatushnyak's Avatar
    Join Date
    Oct 2007
    Location
    Canada
    Posts
    241
    Thanks
    41
    Thanked 98 Times in 51 Posts
    The lossless mode is not very impressive,
    on LPCB images:
    bpgenc.exe -lossless -m1 -e x265 ==> 1,557,660,259 bytes,
    bpgenc.exe -lossless -m9 -e x265 ==> 1,556,653,187
    Regular png (nconvert -out png) ==> 1,471,885,647
    Without "-e x265" it's very very slow, and crashes on 'too big' images, e.g. PIA13912, STA13844

    This newsgroup is dedicated to image compression:
    http://linkedin.com/groups/Image-Compression-3363256

  13. #11
    Member
    Join Date
    Oct 2009
    Location
    usa
    Posts
    59
    Thanks
    1
    Thanked 9 Times in 6 Posts
    Is there currently any non-Java based way to encode and / or decode BPG files? A standalone win32 / win64 commandline utility written in fast C or C++ would be optimal. Java is terribly slow.

  14. #12
    Member ivan2k2's Avatar
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    35
    Thanks
    13
    Thanked 6 Times in 3 Posts
    Quote Originally Posted by zyzzle View Post
    Is there currently any non-Java based way to encode and / or decode BPG files? A standalone win32 / win64 commandline utility written in fast C or C++ would be optimal. Java is terribly slow.
    Yes, see link in #1, there is already win32 commandline coder/decoder.

  15. #13
    Member Fallon's Avatar
    Join Date
    May 2008
    Location
    Europe - The Netherlands
    Posts
    161
    Thanks
    14
    Thanked 10 Times in 5 Posts
    I will be interested if camera support arrives.
    Two links with quick comments.
    http://www.canonrumors.com/forum/ind...?topic=24217.0
    http://www.dpreview.com/articles/035...-replace-jpegs
    Last edited by Fallon; 21st February 2015 at 11:40.

  16. #14
    Tester
    Nania Francesco's Avatar
    Join Date
    May 2008
    Location
    Italy
    Posts
    1,565
    Thanks
    220
    Thanked 146 Times in 83 Posts
    Dedicate time every so often to any program based on video compression (DCT, FDCT etc.) and images of course. I believe that is what BPG lossy format very interesting but slow currently in compression. If you will use multiple processors in future compression may become an interesting and very supported.

  17. #15
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    Quote Originally Posted by load View Post
    new xnview 2.30 has BPG (decoding only) support (but uses bpgdec.exe)

    http://newsgroup.xnview.com/viewtopic.php?f=35&t=31313
    there is also another bpg plugin, which also encodes.

    https://github.com/leavinel/BPG-Plugins/releases

  18. #16
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    i made a x64 compile of the xnview plugin from https://github.com/leavinel/BPG-Plugins/releases
    it should work in xnview mp.

    i updated the libraries to

    - libbpg 0.9.7
    - x265 2.1
    - jctvc HM-16.3

    it is huge because it contains all 3 (8¦10¦12) bitdepths in x265 (unlike the original release).

    maybe someone can use it...
    Attached Files Attached Files

  19. #17
    Member
    Join Date
    Oct 2016
    Location
    Berlin
    Posts
    9
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Smile

    Quote Originally Posted by load View Post
    maybe someone can use it...
    That's great, thanks!


    Are you heimaki from the XnView forum (http://newsgroup.xnview.com/viewtopi...5043#p135036)? In either case, it would be nice if you'd release the encoder an exe, too.

    Btw: I guess bpg is dead b/c an updated webp format based on the upcoming av1-libvpx might be able to compete with hevc/bpg, but lack the patent issues: https://en.wikipedia.org/wiki/AOMedia_Video_1
    Last edited by Marsu42; 18th October 2016 at 02:26.

  20. #18
    Member
    Join Date
    Oct 2016
    Location
    Russia
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How to compile plugin to Imagine?

  21. #19
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    imagine plugin x64 attached. i didn't think someone needs it, honestly.
    Attached Files Attached Files

  22. #20
    Member
    Join Date
    Oct 2016
    Location
    Russia
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. You can compile the x86 version?

  23. #21
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    the official v0.0.0.2 x86 version is still there...

    https://github.com/leavinel/BPG-Plugins/releases

  24. #22
    Member
    Join Date
    Oct 2016
    Location
    Russia
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    between Imagine v0.0.0.2 and v0.0.0.3 no difference?

  25. #23
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    well there is. but the main difference is, the imagine v0.0.0.3 code is broken and won't compile. there's a reason why he didn't offer an imagine v0.0.0.3 compile himself.

    the x64 compile is based on the v0.0.0.2 code as well, forgot to mention this. i guess no one will bother adapting the newer code.

  26. #24
    Member
    Join Date
    Apr 2009
    Location
    here
    Posts
    204
    Thanks
    170
    Thanked 109 Times in 65 Posts
    BPG Image Format Plugins 0.0.0.4

    https://github.com/leavinel/BPG-Plugins

Similar Threads

  1. JPEG XT Demo software available on jpeg.org
    By thorfdbg in forum Data Compression
    Replies: 40
    Last Post: 16th September 2015, 16:30
  2. Replies: 9
    Last Post: 12th June 2015, 00:28
  3. StuffIt X Format
    By maadjordan in forum Data Compression
    Replies: 19
    Last Post: 9th August 2008, 14:03
  4. Bit Archive Format
    By osmanturan in forum Forum Archive
    Replies: 39
    Last Post: 29th December 2007, 00:57
  5. peazip's pea format
    By l1t in forum Forum Archive
    Replies: 6
    Last Post: 22nd October 2007, 20:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •