mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
cwebp: centralize WebPCleanupTransparentArea()
this can be safely called whether the picture has alpha or not Change-Id: I0047fd4c110f1072f183f3d340682502bd6623d7
This commit is contained in:
committed by
Gerrit Code Review
parent
7381254e9a
commit
7c732e59f4
@ -876,6 +876,9 @@ int main(int argc, const char *argv[]) {
|
||||
goto Error;
|
||||
}
|
||||
picture.progress_hook = (show_progress && !quiet) ? ProgressReport : NULL;
|
||||
if (keep_alpha == 2) {
|
||||
WebPCleanupTransparentArea(&picture);
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
const double read_time = StopwatchReadAndReset(&stop_watch);
|
||||
|
Reference in New Issue
Block a user