android - Image size is increased when converted from jpg to webp with quality value 100 -


i want replace .png , .jpg files in android project .webp reduce app size.

i verifying these 3 cases jpg webp conversion(for both .png , .jpg) :

  1. lossy 80% quality
  2. lossy 100% quality
  3. lossless

for case 1, size reduced ~30% expected

but cases 1 , 2, size increased significantly(170kb of .jpg 470kb of .webp) instead of decreasing.

command used :

cwebp -q 100 input.jpg -o output.webp

this working fine .png images 3 cases sizes reduced when converted .webp format.

but same not working .jpg image ? size reduction depend on .jpg image ? size guaranteed reduce when converted .jpg/.png .webp ? why did size increase ?

version of libwebp : libwebp-0.4.3 os - windows 64-bit

the problem face jpeg there large number of variables can manipulate different compression. benefit lossy compression. lossless compression tends have few (if options). in lossless compression, tradeoff time vs. compression. in lossy quality vs. compression.

you running lossy compressed image through second lossy compression process , getting rather unpredictable results.

the real comparison take png images , compress them using webp , jpeg using various settings see quality compared compression.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -