add a WebPCleanupTransparentArea() method

to 'clean up' the fully-transparent area and make it more compressible
new cwebp flags: -alpha_cleanup (off by default, since gain is not 100% guaranteed)

Change-Id: I74d77e1915eee146584cd61c9c1132a41db922eb
This commit is contained in:
Pascal Massimino
2012-01-17 08:18:22 +00:00
committed by James Zern
parent 552c121715
commit 2e3e8b2ef5
5 changed files with 93 additions and 8 deletions

View File

@ -155,6 +155,10 @@ Specify the algorithm used for alpha compression: 0 or 1. Algorithm 0 denotes
no compression, 1 uses uses backward reference counts encoded with arithmetic
encoder. The default is 1.
.TP
.B \-alpha_cleanup
Modify unseen RGB values under fully transparent area, to help compressibility.
The default is off.
.TP
.B \-noalpha
Using this option will discard the alpha channel.
.TP