diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs index c257a24ed..b10f8a2e0 100644 --- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs @@ -98,10 +98,10 @@ namespace SixLabors.ImageSharp.Formats.Gif this.hasFrames = image.Frames.Count > 1; - var ditheredQuantizer = (IQuantizer)this.quantizer; + var pixelQuantizer = (IQuantizer)this.quantizer; // Quantize the image returning a palette. - QuantizedImage quantized = ditheredQuantizer.Quantize(image.Frames.RootFrame, size); + QuantizedImage quantized = pixelQuantizer.Quantize(image.Frames.RootFrame, size); int index = this.GetTransparentIndex(quantized); @@ -124,7 +124,7 @@ namespace SixLabors.ImageSharp.Formats.Gif { if (quantized == null) { - quantized = ditheredQuantizer.Quantize(frame, size); + quantized = pixelQuantizer.Quantize(frame, size); } this.WriteGraphicalControlExtension(frame.MetaData, writer, this.GetTransparentIndex(quantized));