title: nQuant image quality of gray gradients
body: <p>So I am trying nQuant for png compression but having terrible results:</p>
  
  <p>Using the canonical QuantizeImage call</p>
  
  <pre><code>var quantizer = new WuQuantizer();
  Bitmap imageToSave = new Bitmap(image);                                        
  using (var quantized = quantizer.QuantizeImage(imageToSave))
  {
     quantized.Save(Path.Combine(imagesPath, imageName + "." + format), format);
  }
  </code></pre>
  
  <p>Processing this <a href="https://i.stack.imgur.com/GNVnA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GNVnA.jpg" alt="enter image description here"></a></p>
  
  <p>I obtained this</p>
  
  <p><a href="https://i.stack.imgur.com/lMCl1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lMCl1.jpg" alt="enter image description here"></a></p>
  
  <p>Any Idea how to prevent the quality from degrading so much?</p>