]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Thu, 31 Jan 2019 12:38:50 +0000 (07:38 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Thu, 31 Jan 2019 12:38:50 +0000 (07:38 -0500)
coders/webp.c

index c45d66633bd4b82004d46c9cd571f4c4e152a92b..bbc51be122cb0b73b4bb015bfe2d907200aefc4e 100644 (file)
@@ -729,6 +729,11 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info,
   value=GetImageOption(image_info,"webp:thread-level");
   if (value != (char *) NULL)
     configure.thread_level=StringToInteger(value);
+#endif
+#if WEBP_DECODER_ABI_VERSION >= 0x020e
+  value=GetImageOption(image_info,"webp:use-sharp-yuv");
+  if (value != (char *) NULL)
+    configure.use_sharp_yuv=StringToInteger(value);
 #endif
   if (WebPValidateConfig(&configure) == 0)
     ThrowWriterException(ResourceLimitError,"UnableToEncodeImageFile");