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.

highqualityjpegvsbpg-2
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…
What to do if your Intel CPU keeps crashing
Pins on Core i9-12900K.

Despite being among the best processors you can buy, some high-end Intel CPUs have faced a wave of instability over the past few months. Intel is investigating the problem, but the company and its motherboard partners have already worked toward some temporary fixes to improve stability on high-end Intel CPUs -- even if it comes at a performance cost.

Before getting into the fixes, keep in mind that they are temporary. Intel will release a statement on the instability soon, likely with more direct guidance on what affected users should do. In addition, the scope of the problem isn't clear -- if you're not experiencing issues, you shouldn't have anything to worry about.
Who's affected

Read more
HP Envy deals: HP’s most popular laptop starts at $630
An HP Envy 17-inch laptop sits on an office desk.

HP is one of the best laptop brands in the laptop space, with a huge selection of laptops to pick from, including some of the best laptops on the market. More specifically, though, the HP lineup is probably at the top when it comes to versatile and relatively well-valued laptops. While there are quite a few variations and configurations of the HP Envy, we've gone ahead and put together the ones that we think will give you the most bang for your buck. That said, if you haven't found something you're specifically looking for, be sure to check out some of these other great laptop deals as well.
HP Envy x360 2-in-1 laptop 15Z-FH000 — $650, was $900

The HP Envy x360 convertible laptop is a great option for just about anyone, particularly anyone who enjoys the touchscreen functionality of a tablet. It’s well designed and super slim, making it a truly go-anywhere device. Despite its portability, it still has an immersive 15.6-inch touchscreen that’s great for creators, note-takers, and binge watchers. Top notch build quality and durability, fast charging technology, a fingerprint reader, and great battery life round out the top features of the HP Envy x360 convertible touchscreen laptop. It competes well with the best 2-in-1 laptops. Its versatility and all-around capability make it a worthy companion on any desk, and on any lap.

Read more
I use these simple printer tips to save money on ink and toner
Printing is fast and economical with the HP Smart Tank 7602.

The cost of a printer can range from under $100 for some good, low-cost inkjet printers to several hundred for the best color laser printers. However, the price you pay upfront doesn’t include paper, and the included ink and toner only lasts so long.

A bargain printer can end up costing you more overall if the cartridges are small and replacements are expensive. Follow these tips to minimize ink, toner, and paper waste, reducing the ongoing expense of using your printer in the long run.
Print in monochrome
Adobe Acrobat's print settings includes a grayscale option. Digital Trends

Read more