Search code examples
androidapkwebp

Is it worth to convert PNG to WEBP when we can achieve lesser sized PNG from any png converter


I have been thinking of replacing png files in my Android application with Webp images to reduce APK size.

While the results were good, I want to know if i use some png converter/cruncher and am able to reduce size less that what i got for webp images, than should i proceed with using webp images ?

Original PNG size - A KB

After converting to Webp - B KB

Using some good PNG converter/cruncher(PNG to PNG) : C KB

If C is less than B , than what are the advantages/disadvantages of choosing webp method ?

What I have done :

Converted PNG to webp using lossless and lossy conversions :

Original PNG - input.png : 4312 KB

i) lossless - cwebp input.png -lossless -o output.webp

   size of output.webp - 201 KB

ii) lossy at 80 -cwebp -q 80 input.png -o output.webp

   size of output.webp - 25 KB

Can we achieve more size reduction with any png cruncher ?


Solution

  • In case C less than B then you should not even think about using WebP. You should use WebP format when you download image from the web - but if you're talking about resources in your APK then go for a good cruncher (in case C less than B).

    Cheers!