]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1584
authorCristy <urban-warrior@imagemagick.org>
Sat, 12 Oct 2019 18:14:41 +0000 (14:14 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 12 Oct 2019 18:14:41 +0000 (14:14 -0400)
MagickCore/quantize.c

index 38ea0d3e75582225452a1286f389eccc28e49475..76995a4433ecd15e846703065049de1978f0686f 100644 (file)
@@ -2712,13 +2712,10 @@ MagickExport MagickBooleanType QuantizeImage(const QuantizeInfo *quantize_info,
   if (status != MagickFalse)
     {
       /*
-        Reduce the number of colors in the image if it contains more than the
-        maximum, otherwise we can disable dithering to improve the performance.
+        Reduce the number of colors in the image.
       */
       if (cube_info->colors > cube_info->maximum_colors)
         ReduceImageColors(image,cube_info);
-      else
-        cube_info->quantize_info->dither_method=NoDitherMethod;
       status=AssignImageColors(image,cube_info,exception);
     }
   DestroyCubeInfo(cube_info);