diff --git a/src/ImageSharp/Bootstrapper.cs b/src/ImageSharp/Bootstrapper.cs index 35a4a5225..3c91f2274 100644 --- a/src/ImageSharp/Bootstrapper.cs +++ b/src/ImageSharp/Bootstrapper.cs @@ -8,6 +8,7 @@ namespace ImageSharp using System; using System.Collections.Generic; using System.Collections.ObjectModel; + using System.Linq; using System.Threading.Tasks; using Formats; @@ -63,7 +64,10 @@ namespace ImageSharp /// The new format to add. public void AddImageFormat(IImageFormat format) { - this.imageFormats.Add(format); + if (this.imageFormats.All(i => i.GetType() != format.GetType())) + { + this.imageFormats.Add(format); + } } } }