From 16dd75b2e06180035f5f3283f889b455f8fdd0b9 Mon Sep 17 00:00:00 2001 From: JimBobSquarePants Date: Tue, 3 Oct 2017 13:23:43 +1100 Subject: [PATCH] Allow dithering on animated gifs. --- src/ImageSharp/Formats/Gif/GifEncoderCore.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs index 1b25fd1f1..c257a24ed 100644 --- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs @@ -98,9 +98,7 @@ namespace SixLabors.ImageSharp.Formats.Gif this.hasFrames = image.Frames.Count > 1; - // Dithering when animating gifs is a bad idea as we introduce pixel tearing across frames. var ditheredQuantizer = (IQuantizer)this.quantizer; - ditheredQuantizer.Dither = !this.hasFrames; // Quantize the image returning a palette. QuantizedImage quantized = ditheredQuantizer.Quantize(image.Frames.RootFrame, size);