August 24, 2021
Saving JPEG 1 million times
One million is a nice round number and JPEG is lossy image compression. Do you have ever wondered what JPEG picture would look like if it gets saved 1,000,000 times?
Quality 90 is pretty good, right? 🔗
|
|
Oh, we lost something. Well, it was expected with lossy compression. The file size is 188 KiB.
Quality 91 wouldn’t be much better? 🔗
|
|
That’s almost original quality. The file size is 196 KiB.
About quality setting from ImageMagick documentation:
When the quality is greater than 90, then the chroma channels are not downsampled.
Test of all qualities 🔗
In this test image is saved 100 times with every quality value between 1 and 100.
|
|
Conclusion 🔗
It’s interesting how unpericable is the quality of outcome image with different quality values. Especially amount of artifacts with quality range 85-90.
Previous post
Ox-hugo friendly image resize in Hugo