Categories
English

Simple image formats comparison and optimisation

There have been many tests of image formats earlier before, but this time DSSIM was introduced for the more objective and more scientific comparison between lossy formats including JPEG, WebP and AVIF. Optimisation for 🔞Reconquest at Night was also introduced for reducing colour banding and adding a tremendous shallow depth of field.

DSSIM is a tool for comparing two images and determining the dissimilarity of them. The higher value means the more dissimilar, and 0 means no difference.

The standard for this comparison was JPEG (optimised with MozJPEG) at the quality 75 (so called medium quality) as the same or similar quality is used by many social networking services. The sharp YUV option for WebP was enabled this time for the correct colours overall. Behold that the higher value of quality (quantiser) for AVIF means the worse image.

Before optimisation

Standard JPEG image at Quality 75
QualityFormatDSSIMBytesSaved
PNG8,075,251
75JPEG0.001920821,005,85287.54%
99WebP0.002409761,073,74086.7%
12AVIF0.00190306384,67195.24%

The WebP image was larger than the JPEG one, and its DSSIM was even significantly higher. And for WebP, Quality 99 was preferred as Quality 100 unexpectedly resulted in the higher DSSIM. AVIF achieved the much smaller file size. Unfortunately, colour banding was visible on all of the lossy images.

After optimisation

Standard JPEG image at Quality 75
QualityFormatDSSIMBytesSaved
PNG12,881,070
75JPEG0.003544561,896,56385.28%
94WebP0.003651422,056,09884.04%
8AVIF0.003510041,632,98387.32%

The shallow depth of field (DoF) was introduced, but it worsened the colour banding issue. Thus, the grain (noise) adjustment was applied so colour banding was eliminated, but the PNG file size increased 59.51%. JPEG and WebP still saved the similar percentage of file sizes, but AVIF in this test was not that impressive comparing to the previous one. The WebP image remained larger than the JPEG one.

Conclusion

It remains unimpressive that WebP images could be larger than JPEG ones at the similar DSSIM so it seems that AVIF is still the better choice for the future. For artworks, adding the grain adjustment is the effective way to eliminate colour banding, and the shallow DoF can create a phenomenal effect for a background that could be drawn simpler. Artists could experiment with these approaches for the better quality, file size, and overall appearance.

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments