I want to replace my .png and .jpg files in android project with .webp to reduce the app size.
I am verifying these 3 cases for jpg to webp conversion(for both .png and .jpg) :
- Lossy with 80% quality
- Lossy with 100% quality
- Lossless
for Case 1, size was reduced by ~30% as expected
But for cases 1 and 2, size was increased significantly(170KB of .jpg to 470KB of .webp) instead of decreasing.
Command used :
cwebp -q 100 input.jpg -o output.webp
This is working fine with .png images for all three cases where sizes are reduced when converted to .webp format.
But the same is not working with the .jpg image ? Does size reduction depend on .jpg image ? Is size guaranteed to reduce when converted from .jpg/.png to .webp ? Why did the size increase ?
Version of libwebp : libwebp-0.4.3 OS - Windows 64-bit