diff --git a/src/ImageProcessor/Imaging/Formats/GifEncoder.cs b/src/ImageProcessor/Imaging/Formats/GifEncoder.cs
index 89a2ec908..03af3af5e 100644
--- a/src/ImageProcessor/Imaging/Formats/GifEncoder.cs
+++ b/src/ImageProcessor/Imaging/Formats/GifEncoder.cs
@@ -111,6 +111,12 @@ namespace ImageProcessor.Imaging.Formats
#endregion
#region Fields
+
+ ///
+ /// The converter for creating the output image from a byte array.
+ ///
+ private static readonly ImageConverter Converter = new ImageConverter();
+
///
/// The stream.
///
@@ -244,8 +250,7 @@ namespace ImageProcessor.Imaging.Formats
this.imageStream.Flush();
this.imageStream.Position = 0;
byte[] bytes = this.imageStream.ToArray();
- ImageConverter converter = new ImageConverter();
- return (Image)converter.ConvertFrom(bytes);
+ return (Image)Converter.ConvertFrom(bytes);
}
#endregion