diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs index ccf8feacc..926cc091c 100644 --- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs @@ -189,7 +189,7 @@ internal sealed class GifEncoderCore : IImageEncoderInternals // This frame is reused to store de-duplicated pixel buffers. // This is more expensive memory-wise than de-duplicating indexed buffer but allows us to deduplicate // frames using both local and global palettes. - using ImageFrame encodingFrame = new(previousFrame.GetConfiguration(), previousFrame.Size()); + using ImageFrame encodingFrame = new(previousFrame.Configuration, previousFrame.Size()); for (int i = 1; i < image.Frames.Count; i++) {