]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 18 Feb 2013 17:27:13 +0000 (17:27 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 18 Feb 2013 17:27:13 +0000 (17:27 +0000)
coders/webp.c

index 3c005fcfa42325f24b9705749c8c1db6cdb50506..d25cfc9a8f075a39b872d0031735946ccf0fbfe7 100644 (file)
@@ -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");