diff --git a/examples/cwebp.c b/examples/cwebp.c index 67bdf9f8..1ac78535 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -679,8 +679,10 @@ static void HelpLong(void) { printf(" -partition_limit . limit quality to fit the 512k limit on\n"); printf(" " "the first partition (0=no degradation ... 100=full)\n"); +#ifdef WEBP_EXPERIMENTAL_FEATURES printf(" -alpha_comp ...... set the transparency-compression\n"); printf(" -noalpha ............... discard any transparency information.\n"); +#endif printf(" -pass ............ analysis pass number (1..10)\n"); printf(" -crop .. crop picture with the given rectangle\n"); printf(" -resize ........ resize picture (after any cropping)\n"); @@ -800,10 +802,12 @@ int main(int argc, const char *argv[]) { config.segments = strtol(argv[++c], NULL, 0); } else if (!strcmp(argv[c], "-partition_limit") && c < argc - 1) { config.partition_limit = strtol(argv[++c], NULL, 0); +#ifdef WEBP_EXPERIMENTAL_FEATURES } else if (!strcmp(argv[c], "-alpha_comp") && c < argc - 1) { config.alpha_compression = strtol(argv[++c], NULL, 0); } else if (!strcmp(argv[c], "-noalpha")) { keep_alpha = 0; +#endif } else if (!strcmp(argv[c], "-map") && c < argc - 1) { picture.extra_info_type = strtol(argv[++c], NULL, 0); #ifdef WEBP_EXPERIMENTAL_FEATURES