
optipng vs pngquant Comparsion
I made a quick test to compare optipng and pngquant.
I compared these tools based on compression speed and the compressed image size. These tests ran on my Raspberry Pi 4. All tests ran with default settings.
These images have been stolen from my 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 have to mention that the optipng is using lossless compression, while the pngquant is using lossy compression, but I couldn't see the difference between the original and the compressed images.
The absolute winner is pngquant :)
Comments