WebPageTest, PageSpeed, LightHouse image compression analysis methods
Published in
2 min readFeb 27, 2017
What are the analysis methods they used to give us suggestions about image compressions.
WebPageTest
- The author said: mozjpeg with quality = 85%.
- Or you could check out the code here:
Google PageSpeed
- The recommended size is similar to WebPageTest.
- They use libjpeg.
- Default configuration COULD be 85.
ImageRecompressionQuality
This option sets the quality for JPEG and WebP formats. It can be overridden by any format-specific or application-specific quality. The default is 85.
LightHouse
Use Canvas API with quality = 0.8.
Read more about the PR
The code quality of this project looks much better than WebPageTest, lol.