Compressing PNG Images With WebP
"WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster." - source
You can install WebP support on Ubuntu 18.04 and 16.04 by running the following command:
sudo apt update && sudo apt install webp -y
cwebp \ -q 60 \ input.png \ -o output.webp
By doing this, I converted a 325.1 kB PNG file down to just 21.3 kB, which is 93% compression.
First published: 24th May 2019