4

why .webp larger than .png?

I Used ABIC program to convert png -> webp. But some of files are larger than origin png files.

.webp file web file

origin png file 2]

And diff-res is here. 3]

Two problems:

  1. Why png -> webp come larger?
  2. I don't feel size saving while using webp pics. How can Android compression pic files to get a great effect?
ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
ZhangTengyuan
  • 1,295
  • 1
  • 8
  • 8

3 Answers3

5

Use -near_lossless 40 on cwebp for best results with PNGs.

mega6382
  • 9,211
  • 17
  • 48
  • 69
1

From my tests Webp only produces good results when compared to JPG. Against PNG however, it needs twice the filesize to produce a lossless copy. If you really care about pixel perfect (pixel art and the likes) Webp is not a good format at all.

Michael Rogers
  • 232
  • 3
  • 22
0

Sometimes the resulting image can be bigger. It is just a limitation of the WebP algorithm. Especially when the original file is already optimized. Google explains it here

usually when converting from a lossy format to WebP lossless or vice versa. This is mainly due to the colorspace difference (YUV420 vs ARGB) and the conversion between these.

Ricardo
  • 1,308
  • 1
  • 10
  • 21