mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
Add image-hint for low-color images.
For low-color images, it may be better to not use color-palettes. Users should treat this as one another hint (as with Photo & Picture) and another parameter for tuning the compression density. The optimum compression can still be obtained by running (outer loop) compression with all possible tunable parameters. Change-Id: Icb1a4face2a84774e16e801aee4a8ae97e232e8a
This commit is contained in:
@ -844,7 +844,7 @@ static void HelpLong(void) {
|
||||
printf(" -noalpha ............... discard any transparency information.\n");
|
||||
printf(" -lossless .............. Encode image losslessly.\n");
|
||||
printf(" -hint <string> ......... Specify image characteristics hint.\n");
|
||||
printf(" One of: photo or picture\n");
|
||||
printf(" One of: photo, picture or graph\n");
|
||||
|
||||
printf("\n");
|
||||
printf(" -short ................. condense printed message\n");
|
||||
@ -973,6 +973,8 @@ int main(int argc, const char *argv[]) {
|
||||
config.image_hint = WEBP_HINT_PHOTO;
|
||||
} else if (!strcmp(argv[c], "picture")) {
|
||||
config.image_hint = WEBP_HINT_PICTURE;
|
||||
} else if (!strcmp(argv[c], "graph")) {
|
||||
config.image_hint = WEBP_HINT_GRAPH;
|
||||
} else {
|
||||
fprintf(stderr, "Error! Unrecognized image hint: %s\n", argv[c]);
|
||||
goto Error;
|
||||
|
Reference in New Issue
Block a user