diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs index becb56eabf..5dc1a150d0 100644 --- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs @@ -38,7 +38,7 @@ namespace ImageSharp.Formats /// /// Whether the current image has multiple frames. /// - private bool hasMultipleFrames; + private bool hasFrames; /// /// Initializes a new instance of the class. @@ -79,11 +79,11 @@ namespace ImageSharp.Formats this.bitDepth = ImageMaths.GetBitsNeededForColorDepth(quality); // Quantize the image returning a palette. - this.hasMultipleFrames = image.Frames.Any(); + this.hasFrames = image.Frames.Any(); // Dithering when animating gifs is a bad idea as we introduce pixel tearing across frames. IQuantizer ditheredQuantizer = (IQuantizer)this.Quantizer; - ditheredQuantizer.Dither = !this.hasMultipleFrames; + ditheredQuantizer.Dither = !this.hasFrames; QuantizedImage quantized = ditheredQuantizer.Quantize(image, quality); @@ -103,7 +103,7 @@ namespace ImageSharp.Formats this.WriteImageData(quantized, writer); // Write additional frames. - if (this.hasMultipleFrames) + if (this.hasFrames) { this.WriteApplicationExtension(writer, image.MetaData.RepeatCount, image.Frames.Count);