optipng vs pngquant quick Comparsion

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 timeCompressed size
optipng0.825s43KB (19.93% decrease)
pngquant0.262s22KB (58.49% decrease)

 

DigitalOcean.png - Original size: 185KB

 Compression timeCompressed size
optipng4.639s120KB (35.47% decrease)
pngquant1.299s76KB (58.92% decrease)

 

WordPress.png - Original size: 160KB

 Compression timeCompressed size
optipng9.924s101KB (36.92% decrease)
pngquant0.820s69KB (56.88% decrease)

Download all files here

 

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!
Feriman

Feriman

I am passionate about helping individuals and businesses achieve greater efficiency and productivity through automation, optimization and utilizing technologies like Linux and Raspberry Pi. I believe that by streamlining processes and earning passive income, we can achieve financial freedom and live a better life. My goal is to share my knowledge and experience with you, and help you improve your workflows and increase your earning potential.

Comments