Browse Source

Added missing initialization of the quantizer field.

af/merge-core
Dirk Lemstra 9 years ago
committed by Dirk Lemstra
parent
commit
48baea5ffe
  1. 1
      src/ImageSharp.Formats.Png/PngEncoderCore.cs

1
src/ImageSharp.Formats.Png/PngEncoderCore.cs

@ -146,6 +146,7 @@ namespace ImageSharp.Formats
this.quality = this.quality > 0 ? this.quality.Clamp(1, int.MaxValue) : int.MaxValue;
this.pngColorType = this.options.PngColorType;
this.quantizer = this.options.Quantizer;
// Set correct color type if the color count is 256 or less.
if (this.quality <= 256)

Loading…
Cancel
Save