diff --git a/src/ImageSharp/Formats/Gif/GifConstants.cs b/src/ImageSharp/Formats/Gif/GifConstants.cs
index dba26bd80..ffab45a56 100644
--- a/src/ImageSharp/Formats/Gif/GifConstants.cs
+++ b/src/ImageSharp/Formats/Gif/GifConstants.cs
@@ -24,7 +24,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
///
/// The ASCII encoded bytes used to identify the GIF file.
///
- internal static readonly byte[] MagicNumber = { 71, 73, 70, 56, 57, 97 }; // GIF89a
+ internal static readonly byte[] MagicNumber = Encoding.UTF8.GetBytes(FileType + FileVersion);
///
/// The extension block introducer !.
diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs
index 7550d0669..436db636d 100644
--- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs
+++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs
@@ -157,7 +157,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
/// The writer to write to the stream with.
private void WriteHeader(EndianBinaryWriter writer)
{
- writer.Write(GifConstants.MagicNumber, 0, GifConstants.MagicNumber.Length);
+ writer.Write(GifConstants.MagicNumber);
}
///
@@ -213,7 +213,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
writer.Write(this.buffer, 0, 3);
- writer.Write(GifConstants.ApplicationIdentificationBytes, 0, GifConstants.ApplicationIdentificationBytes.Length); // NETSCAPE2.0
+ writer.Write(GifConstants.ApplicationIdentificationBytes); // NETSCAPE2.0
writer.Write((byte)3); // Application block length
writer.Write((byte)1); // Data sub-block index (always 1)