Skip to main content

Tired of JPEG compression artifacts? BPG is the solution

tired jpeg compression artifacts bpg solution highqualityjpegvsbpg
Image used with permission by copyright holder
Most of the images you view online are JPEGs, an image format that’s now over twenty years old. It has proven immensely popular because of its wide range of compression and ability to deliver high-quality shots when compression is not the most pressing issue. Also, as with any standard, early popularity entrenched JPEG’s position, making it a mandatory feature for any web browser or photo editor.

But JPEG is far from perfect. You may have noticed small, blocky irregularities in JPEG images. These compression artifacts are a result of how the format’s algorithm reduces file size, and they can be very distracting. They stand out the most in images that have very fine, high-contrast detail, such as small text or the hair of an animal against a contrasting background. Certain gradients also make these artifacts easy to spot, particularly in images that are aggressively compressed.

Fabrice Bellard, an award-winning French programmer best known for QEMU, a hardware virtualization program, and FFmpeg, a cross-platform multimedia codec library, thinks it is time for a change. He’s proposed a new format called Better Portable Graphics, or BPG, that offers numerous benefits over the aging JPEG format. Perhaps the most important is an improved compression ratio, which means the format delivers greater quality at any particular file size.

Image used with permission by copyright holder

You can see the difference for yourself with this comparison tool. We recommend the Air Force Academy Chapel, Soccer Players, and Swallowtail test images at small and medium file size for the most obvious difference. Images included in BPG appear sharper than JPEG and don’t have the blocky artifacts common in the latter. When viewing the Air Force Academy photo, for example, you’ll notice that JPEG introduces fuzzy lines around the structure that don’t appear in the BPG version.

BPG manages its quality through use of the same HEVC codec that is used for x265/H.265 video. In other words, a BPG photo is essentially the same as taking a single frame out of said video. It gives BPG the ability to handle 14 bits per color channel and adds support for an alpha channel, an omission from the JPEG format that’s become increasingly annoying as the years drag on. BPG can even be decoded in hardware by anything that can decode H.265, which could be a boon for viewing high-quality shots on a mobile device.

So when should you expect to see BPG images on your favorite website? That’s a tough question to answer. The new file format, while clearly superior to JPEG, is new. No browsers or image editors currently offer native support. Getting companies to add the feature is a chicken-and-egg problem; no one will be publishing BPG images until there’s support, but there’s no reason to add support until BPG begins to appear on websites.

For now, then, BPG is just an excellent novelty, a glimpse of a future that we’ve not yet achieved. Personally, I hope the file format does receive support in the near future. Its increase in quality is apparent, and its adoption could let photographers share high-quality shots without resorting to formats like PNG and BMP — which deliver clarity at the cost of massive file size.

Editors' Recommendations

Matthew S. Smith
Matthew S. Smith is the former Lead Editor, Reviews at Digital Trends. He previously guided the Products Team, which dives…
This Alienware gaming laptop with an RTX 4090 is $600 off
Alienware m15 gaming laptop on a desk.

Alienware has been one of the best laptop brands out there for quite a while, and if you want to grab yourself one of the best gaming laptops on the market, it's probably going to be an Alienware. In fact, the Alienware M18 R2 is not only powerful, but it also has a massive screen, which is pretty rare when it comes to laptops. Not only that, but it's having a significant early Memorial Day that brings it down to $3,000, rather than the usual $3,600 it goes for, making this an excellent choice if you want one of the best gaming laptops you can grab right now.

Why you should buy the Alienware m18 R2
The beating heart of any gaming device is its GPU, and we're happy to report that the m18 R2 comes with a very impressive RTX 4090 mobile version, making it roughly equivalent to a desktop RTX 4080. That means that the m18 R2 has enough power to run the 2560 x 1600 resolution of the 18-inch screen while still being able to reasonably hit the 165Hz refresh rate while still maintaining higher graphical settings. Even if it doesn't quite hit all those markets, it will come close, and you can adjust your settings to focus on performance or looks depending on your needs, so you'll basically be able to play whatever you want.

Read more
HP’s answer to Apple’s iMac is discounted from to $450 this weekend
A man does creative work at the HP 27-inch all-in-one PC.

If you don't really have the space to fit a whole desktop computer, then you may want to consider going for an all-in-one (AIO) solution; it will save you a ton of space, plus you don't have to go out and buy each part individually. Luckily, there are some great early Memorial Day deals on AIO solutions you can take advantage of, such as this deal on the HP All-in-One 27, which usually goes for $850 but has been discounted down to just $450. That makes it an excellent budget pick if you just want something for the basics and don't expect to do any complex tasks on it, like graphical rendering.

Why you should buy the HP All-in-One 27
While the HP All-in-One 27 might not be as powerful as an iMac, it does have similar dimensions, with a large 27-inch screen and a surprisingly tiny bezel, which is actually a bit smaller than the iMac's.The screen runs a 1920 x 1080 resolution and can hit a peak brightness of 300 nits, which will be fine for a well-lit room, and you can upgrade it to a touch version for $200, but it's probably not worth it in the long run. Under the hood, you'll find an Intel Core i3-1315U, an entry-level CPU that should handle most basic tasks just fine, although we'd probably suggest upgrading to the Intel Core i5-1335U for an extra $125, which will give you a lot more versatility and quality of life.

Read more
With Dell’s Summer Specials sale, everyone can find a PC at low, low prices
Dell Summer Specials PC deals featured image

There really is a PC or computer for every occasion or, better stated, for every season. Gaming during the summer or with lots of free time, obviously. Productivity and working with professional documents, yes. Graphic or web design, yes. Programming and development, yes. Media, entertainment, and web browsing, yes. You name it, there's a system that's ripe for the activity. And, of course, you can use a single PC to do virtually all of these tasks, depending on the internal hardware. Gaming, for instance, requires a beefy processor and graphics card (GPU). But the point remains: there's something out there for everyone, and there's no better representation of this than Dell's current seasonal tech promotion featuring Summer Specials. From laptops and workstations to powerful gaming PCs, accessories, and monitors, it's a sale that you'll genuinely want to browse for yourself. While we highly recommend looking over the full sale, we've also scooped up a few more notable offers to share below.

Dell Thunderbolt Dock -- $278, was $300
Best accessory deal

Read more