Google Introduces JPEG Coding Library
Written by Alex Denham   
Monday, 15 April 2024

Google has introduced Jpegli, an advanced JPEG coding library that maintains high backward compatibility while offering enhanced capabilities and a 35% compression ratio improvement at high quality compression settings.

The new library is designed to be faster, more efficient, and more visually pleasing than traditional JPEG. Google says the library provides both a fully interoperable encoder and decoder complying with the original JPEG standard, but images that are compressed or decompressed through Jpegli look clearer because more precise and psychovisually effective computations are performed. 

googleopen2

The developers say Jpegli's coding speed is comparable to traditional approaches, such as libjpeg-turbo and MozJPEG, meaning web developers can integrate Jpegli into their existing workflows without sacrificing coding speed performance or memory use.

Jpegli can be encoded with 10+ bits per component, as opposed to traditional JPEG coding solutions that offer only 8 bit per component dynamics causing visible banding artifacts in slow gradients. The resulting images are still fully interoperable with 8-bit viewers. The images are more dense, so saving on bandwidth and storage space, and speeding up web pages.

Jpegli achieves the improved resuls and performance through a number of new techniques to reduce noise and improve image quality. The first new technique is the use of adaptive quantization to reduce noise and improve image quality. The developers the techniques were originally developed for JPEG XL, and work by spatially modulating the dead zone in quantization based on psychovisual modeling. On noisy parts of the image, quantization thresholds for zero coefficients are higher than on smoother parts of the image.

The next change is improved quantization matrix selection.  Precise intermediate results in Jpegli improve image quality, and both encoding and decoding produce higher quality results. Jpegli can also use JPEG XL's XYB colorspace for further quality and density improvements.

The quality of the output image can be indicated by a distance parameter that is analogous to the distance parameter of JPEG XL. The developers say the quantization tables are chosen based on the distance and the chroma subsampling mode, with different positions in the quantization matrix scaling differently, and the red and blue chrominance channels have separate quantization tables.

Jpegli is available now on GitHub.

googleopen2

More Information

Jpegli On GitHub

Related Articles

Fractal Image Compression

Guetzli Makes JPEGs Smaller

Mozilla Wants To Take A Byte Out Of JPEGs

Mozjpeg 2 Makes Pictures Smaller

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Ilya Sutskever Raise $1 Billion To Research Safe AI
11/09/2024

Safe Superintelligence, the company co-founded by Ilya Sutskever after he resigned from Open AI, has raised $1billion in cash funding, despite the fact that it intends not to release any products [ ... ]



Yugabyte Improves Postgres Compatibility
24/09/2024

YugabyteDB has been upgraded with what the developers describe as enhanced Postgres capability in the form of new capabilities and architectural enhancements that allow a broader range of Postgres app [ ... ]


More News

kotlin book

 

Comments




or email your comment to: comments@i-programmer.info