img2webp: fix default -lossless value and use pic.argb=1

Change-Id: I0e5350928c1e58e0901303ee979fb4587f25d6bc
This commit is contained in:
Pascal Massimino 2016-12-02 13:18:07 +01:00
parent 0e61a5134a
commit bded7848ea

View File

@ -176,6 +176,7 @@ int main(int argc, char* argv[]) {
// image-reading pass // image-reading pass
pic_num = 0; pic_num = 0;
config.lossless = 1;
for (c = 1; ok && c < argc; ++c) { for (c = 1; ok && c < argc; ++c) {
if (argv[c] == NULL) continue; if (argv[c] == NULL) continue;
if (argv[c][0] == '-') { // parse local options if (argv[c][0] == '-') { // parse local options
@ -212,6 +213,7 @@ int main(int argc, char* argv[]) {
} }
// read next input image // read next input image
pic.use_argb = 1;
ok = ReadImage(argv[c], &pic); ok = ReadImage(argv[c], &pic);
if (!ok) goto End; if (!ok) goto End;