Saturday, May 18, 2024

High Quality Research.

HomeArticleComparison of image quality and file size of Top Image Formats -...

Comparison of image quality and file size of Top Image Formats – jpgxl, avif.

Should I use avif or jpegxl for mass archival of photos?

I was trying to decide whether to archive all my photos as raw(lossless), png (lossless), webp(lossless), webp(lossy), avif(lossless), avif(lossy), jpgxl(lossless),jpgxl(lossy).

Considering all my factors (3 TB of Raw Images needed to be cloud saved), I decided to go for jpgxl(lossy) and store the data at 16% of original size - 480 GB at almost indistinguishable visual quality.

These findings might help you decide.


JPEG XL is about 30 percent better overall and gives similar visual fidelity. (This is as per my personal analysis and factors and not claiming to be perfect.)

Commands – Shell and Windows Command Line

avifenc.exe -q 75 1.jpg 4-75.avif
cjxl -q 75 1.jpg 2_75.jxl --lossless_jpeg=0

Where are the encoders?

AVIF Encoder Link

JPGXL Encoder Link

Results data

SlTypeFile Size (MB)FormatQuality (Q)Visual quality ScoreSaved Filesize MBSaved Filesize Percent
4Quality at 756.3AVIF75991975.1
5Quality at 753.06JXL759922.2487.9
6Quality at 503.05AVIF509822.2587.9
7Quality at 501.93JXL509823.3792.4
8Quality at 251.19AVIF259724.1195.3
9Quality at 251.39JXL259723.9194.5


JPEG XL is a royalty-free raster-graphics file format that supports both lossy and lossless compression. It is designed to outperform existing raster formats and thus become their universal replacement

The JPEG XL call for proposals talks about the requirement of a next generation image compression standard with substantially better compression efficiency (60% improvement) comparing to JPEG. The standard is expected to outperform the still image compression performance shown by HEIC, AVIF, WebP, and JPEG 2000. It also provides efficient lossless recompression options for images in the traditional/legacy JPEG format.

JPEG XL supports lossy compression and lossless compression of ultra-high-resolution images (up to 1 terapixel), up to 32 bits per component, up to 4099 components (including alpha transparency), animated images, and embedded previews. It has features aimed at web delivery such as advanced progressive decoding[13] and minimal header overhead, as well as features aimed at image editing and digital printing, such as support for multiple layers, CMYK, and spot colors. It is specifically designed to seamlessly handle wide color gamut color spaces with high dynamic range such as Rec. 2100 with the PQ or HLG transfer function.


AV1 Image File Format (AVIF) is an open, royalty-free image file format specification for storing images or image sequences compressed with AV1 in the HEIF container format. It competes with HEIC, which uses the same container format built upon ISOBMFF, but HEVC for compression. Version 1.0.0 of the AVIF specification was finalized in February 2019.

In a number of tests by Netflix in 2020, AVIF showed better compression efficiency than JPEG as well as better detail preservation, fewer blocking artifacts and less color bleeding around hard edges in composites of natural images, text, and graphics.

Image Samples




Please enter your comment!
Please enter your name here

Most Popular

Recent Comments