Computers

BPG image format offers JPEG quality at half the file size

BPG image format offers JPEG quality at half the file size
The blocking, color banding and aliasing artifacts of heavily compressed JPEG (left), while the heavily compressed BPG (right) looks much smoother
The blocking, color banding and aliasing artifacts of heavily compressed JPEG (left), while the heavily compressed BPG (right) looks much smoother
View 16 Images
Heavily compressed BPG (left) and heavily compressed JPEG (right)
1/16
Heavily compressed BPG (left) and heavily compressed JPEG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
2/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
3/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
4/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
5/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
6/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Left: heavily compressed JPEG. Right: heavily compressed BPG
7/16
Left: heavily compressed JPEG. Right: heavily compressed BPG
Heavily compressed JPEG (left) and heavily compressed BPG (right)
8/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
9/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
10/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
11/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
The blocking, color banding and aliasing artifacts of heavily compressed JPEG (left), while the heavily compressed BPG (right) looks much smoother
12/16
The blocking, color banding and aliasing artifacts of heavily compressed JPEG (left), while the heavily compressed BPG (right) looks much smoother
Heavily compressed JPEG (left) and heavily compressed BPG (right)
13/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
14/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
15/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)
16/16
Heavily compressed JPEG (left) and heavily compressed BPG (right)
View gallery - 16 images

French programmer Fabrice Bellard has come up with a graphics file format he believes can "replace the JPEG image format." Bellard’s BPG (Better Portable Graphics) format boasts a compelling quality advantage over JPG, particularly when images are heavily compressed. Take a look through the gallery to see a few comparison shots – the left hand side of each image shows the JPEG compressed format, the right side shows BPG at a similar file size.

The BPG files seem to hold up vastly better, demonstrating a lot less color banding, blocking and step-ladder aliasing along edges, and producing pleasing images down to surprisingly small sizes.

Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)

BPG files can also handle transparency, which JPEG files can’t – although GIF and PNG files can, and those are both supported by most Web browsers. Currently, BPG files require a 55 kilobyte Javascript decoder to be embedded in a website before they can be displayed.

Is BPG likely to take over as a successor to JPEG? There’s a few factors running up against it. In the most simple sense, JPG is more or less doing a good enough job. Designers are comfortable with using it online, it’s well understood, it’s supported pretty much everywhere, and internet connections are becoming fast enough that image download times aren’t the issue they used to be.

Heavily compressed JPEG (left) and heavily compressed BPG (right)
Heavily compressed JPEG (left) and heavily compressed BPG (right)

Beyond that, BPG is built using HEVC video compression technology that’s patented by MPEG LA – which also owns the H.264 video codec. As the owners of the HEVC patents, MPEG LA would be within its rights to charge royalties on a piece of hardware or software with BPG decoders built into it, making it a risky move for popular free and open-source web browsers like Firefox to support the format.

And to compound BPG’s worries, it’s competing directly with Google’s up-and-coming WebP format, which, like BPG, compresses much better than the JPEG format and features alpha transparency. But WebP also handles moving images more efficiently than the GIF format and, most importantly, it’s already supported by the Chrome and Opera browsers, with Google also releasing it under a free BSD license.

Still, it’s cool to watch clever people achieving clever things with software, even if the morass of patent law and commercial considerations do end up leaving BPG by the wayside.

Source: The decidedly un-graphical Fabrice Bellard website.

View gallery - 16 images
4 comments
4 comments
Nairda
Wonder how it compares to Jpeg 2000, another older standard that was supposed to topple JPG but did not .
Dave Brumley
"Still, it’s cool to watch clever people achieving clever things with software, even if the morass of patent law and commercial considerations do end up leaving BPG by the wayside."
I totally agree.
Andrew Yakovenko
Being basically a subset of HEVC, I'd expect BPG to be a little better than JPEG 2000
TedGrassman
"But WebP also handles moving images more efficiently than the GIF format". You don't mention it in your article, but BPG actually supports animated images too, and does a good job at it. Some examples here: http://bellard.org/bpg/animation.html So basically with transparency+animation, it competes with APNG, but with smaller sizes :) @Nairda: check out this adress, you can compare BPG to JPEG2000 -> http://xooyoozoo.github.io/yolo-octo-bugfixes/#swallowtail&jp2=t&bpg=t I think it still beats it, especially at very small sizes ^^