![optipng vs pngquant quick Comparsion](https://feriman.com/media/posts/29/optipng-vs-pngquant-header-2.png)
optipng vs pngquant Comparsion
I did a quick comparison test to see which is better: optipng or pngquant?
I compared them in terms of speed and compression ratio. I ran all the tests on my Raspberry Pi 4. All tests were run with default settings.
All images downloaded from my own articles: PacketStream, DigitalOcean, and WordPress.
PacketStream.png - Original size: 53KB
Compression time | Compressed size | |
optipng | 0.825s | 43KB (19.93% decrease) |
pngquant | 0.262s | 22KB (58.49% decrease) |
DigitalOcean.png - Original size: 185KB
Compression time | Compressed size | |
optipng | 4.639s | 120KB (35.47% decrease) |
pngquant | 1.299s | 76KB (58.92% decrease) |
WordPress.png - Original size: 160KB
Compression time | Compressed size | |
optipng | 9.924s | 101KB (36.92% decrease) |
pngquant | 0.820s | 69KB (56.88% decrease) |
I should mention that optipng uses lossless compression, while pngquant uses lossy compression, but I couldn't see any difference between the original and the compressed images.
The absolute winner is pngquant :)
![Load WordPress Sites in as fast as 37ms! Load WordPress Sites in as fast as 37ms!](http://www.cloudways.com/affiliate/accounts/default1/banners/be63a2ec.jpg)
Comments