From: cristy Date: Mon, 18 Feb 2013 17:27:13 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4222 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=547fe7f9643f727eb223fc29708d73831b058fbf;p=imagemagick --- diff --git a/coders/webp.c b/coders/webp.c index 3c005fcfa..d25cfc9a8 100644 --- a/coders/webp.c +++ b/coders/webp.c @@ -377,7 +377,7 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info, configure.lossless=1; value=GetImageOption(image_info,"webp:lossless"); if (value != (char *) NULL) - configure.lossess=ParseCommandOption(MagickBooleanOptions,MagickFalse, + configure.lossless=ParseCommandOption(MagickBooleanOptions,MagickFalse, value); value=GetImageOption(image_info,"webp:method"); if (value != (char *) NULL) @@ -385,11 +385,11 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info, value=GetImageOption(image_info,"webp:image-hint"); if (value != (char *) NULL) { - if (LocaleCompare(value,"graph"): + if (LocaleCompare(value,"graph") == 0) configure.image_hint=WEBP_HINT_GRAPH; - if (LocaleCompare(value,"photo"): + if (LocaleCompare(value,"photo") == 0) configure.image_hint=WEBP_HINT_PHOTO; - if (LocaleCompare(value,"picture"): + if (LocaleCompare(value,"picture") == 0) configure.image_hint=WEBP_HINT_PICTURE; } value=GetImageOption(image_info,"webp:target-size");