Image To Webp
What is WebP?
This is an image format like PNG/JPG/GIF but it has more interesting features that make it more versatile. Actually, It was developed and released by Google.
Some of its main features are:
- It supports both Lossy and Lossless Compression.
- WebP lossless images are 26% smaller in size compared to PNG and 25–34% smaller compared to JPEG
- Due to it’s a smaller size, a website with many images becomes lighter, faster, and SEO friendly.
Let’s look at the image below.
The jpg version of the image is on the left side which weigh-in 1.3 Mb. The WebP version of the image is on the right side which weigh-in 430 kb. Can you believe this? There isn’t any noticeable difference between the two images until you zoom it in.
So, it’s clear that we can use WebP for reducing image size without losing much quality.
But remember this, WebP isn’t replacement for JPEG and PNG images . All browser still don’t support WebP format. That is why you should also provide JPEG/PNG version of image in case user’s browser don’t support WebP.