Compress Images With cwebp
Simple way to compress images for web usage. So simple in fact the only reason I have this post is because I forget about the tool every now and then.
- Install cwebp:
npm install -g cwebp
cwebp -q 75 IMAGE.png -o IMAGE.webp
The -q
determines quality, in fact in this example you don’t need to include it because cwebp defaults to 75.