mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
add WebPBlendAlpha() function to blend colors against background
new option: -blend_alpha 0xrrggbb also: don't force picture.use_argb value for lossless. Instead, delay the YUVA<->ARGB conversion till WebPEncode() is called. This make the blending more accurate when source is ARGB and lossy compression is used (YUVA). This has an effect on cropping/rescaling. E.g. for PNG, these are now done in ARGB colorspace instead of YUV when lossy compression is used. Change-Id: I18571f1b1179881737a8dbd23ad0aa8cddae3c6b
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.TH CWEBP 1 "March 13, 2013"
|
||||
.TH CWEBP 1 "March 28, 2013"
|
||||
.SH NAME
|
||||
cwebp \- compress an image file to a WebP file
|
||||
.SH SYNOPSIS
|
||||
@ -187,6 +187,11 @@ no compression, 1 uses WebP lossless format for compression. The default is 1.
|
||||
Modify unseen RGB values under fully transparent area, to help compressibility.
|
||||
The default is off.
|
||||
.TP
|
||||
.BI \-blend_alpha " int
|
||||
This option blends the alpha channel (if present) with the source using the
|
||||
background color specified in hexadecimal as 0xrrggbb. The alpha channel is
|
||||
afterward reset to the opaque value 255.
|
||||
.TP
|
||||
.B \-noalpha
|
||||
Using this option will discard the alpha channel.
|
||||
.TP
|
||||
|
Reference in New Issue
Block a user