diff --git a/src/ImageSharp.Formats.Bmp/BootstrapperExtensions.cs b/src/ImageSharp.Formats.Bmp/BootstrapperExtensions.cs
deleted file mode 100644
index 3ed80a5bd9..0000000000
--- a/src/ImageSharp.Formats.Bmp/BootstrapperExtensions.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// Copyright (c) James Jackson-South and contributors.
-// Licensed under the Apache License, Version 2.0.
-//
-
-namespace ImageSharp
-{
- using System;
- using System.IO;
-
- using Formats;
-
- ///
- /// Extension methods for the type.
- ///
- public static partial class BootstrapperExtensions
- {
- ///
- /// Adds the BMP format.
- ///
- /// The bootstrapper.
- /// The bootstraper
- public static Bootstrapper AddBmpFormat(this Bootstrapper bootstrapper)
- {
- bootstrapper.AddImageFormat(new BmpFormat());
- return bootstrapper;
- }
- }
-}
diff --git a/src/ImageSharp.Formats.Bmp/ConfigurationExtensions.cs b/src/ImageSharp.Formats.Bmp/ConfigurationExtensions.cs
new file mode 100644
index 0000000000..6f24f96e91
--- /dev/null
+++ b/src/ImageSharp.Formats.Bmp/ConfigurationExtensions.cs
@@ -0,0 +1,29 @@
+//
+// Copyright (c) James Jackson-South and contributors.
+// Licensed under the Apache License, Version 2.0.
+//
+
+namespace ImageSharp
+{
+ using System;
+ using System.IO;
+
+ using Formats;
+
+ ///
+ /// Extension methods for the type.
+ ///
+ public static partial class ConfigurationExtensions
+ {
+ ///
+ /// Adds the BMP format.
+ ///
+ /// The config.
+ /// The config
+ public static Configuration AddBmpFormat(this Configuration config)
+ {
+ config.AddImageFormat(new BmpFormat());
+ return config;
+ }
+ }
+}
diff --git a/src/ImageSharp.Formats.Gif/BootstrapperExtensions.cs b/src/ImageSharp.Formats.Gif/BootstrapperExtensions.cs
deleted file mode 100644
index 33faf854cf..0000000000
--- a/src/ImageSharp.Formats.Gif/BootstrapperExtensions.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// Copyright (c) James Jackson-South and contributors.
-// Licensed under the Apache License, Version 2.0.
-//
-
-namespace ImageSharp
-{
- using System;
- using System.IO;
-
- using Formats;
-
- ///
- /// Extension methods for the type.
- ///
- public static partial class BootstrapperExtensions
- {
- ///
- /// Adds the Gif format.
- ///
- /// The bootstrapper.
- /// The Bootstrapper
- public static Bootstrapper AddGifFormat(this Bootstrapper bootstrapper)
- {
- bootstrapper.AddImageFormat(new GifFormat());
- return bootstrapper;
- }
- }
-}
diff --git a/src/ImageSharp.Formats.Gif/ConfigurationExtensions.cs b/src/ImageSharp.Formats.Gif/ConfigurationExtensions.cs
new file mode 100644
index 0000000000..3720423cf2
--- /dev/null
+++ b/src/ImageSharp.Formats.Gif/ConfigurationExtensions.cs
@@ -0,0 +1,29 @@
+//
+// Copyright (c) James Jackson-South and contributors.
+// Licensed under the Apache License, Version 2.0.
+//
+
+namespace ImageSharp
+{
+ using System;
+ using System.IO;
+
+ using Formats;
+
+ ///
+ /// Extension methods for the type.
+ ///
+ public static partial class ConfigurationExtensions
+ {
+ ///
+ /// Adds the Gif format.
+ ///
+ /// The config.
+ /// The config
+ public static Configuration AddGifFormat(this Configuration config)
+ {
+ config.AddImageFormat(new GifFormat());
+ return config;
+ }
+ }
+}
diff --git a/src/ImageSharp.Formats.Jpeg/BootstrapperExtensions.cs b/src/ImageSharp.Formats.Jpeg/BootstrapperExtensions.cs
deleted file mode 100644
index b05a71e8b5..0000000000
--- a/src/ImageSharp.Formats.Jpeg/BootstrapperExtensions.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// Copyright (c) James Jackson-South and contributors.
-// Licensed under the Apache License, Version 2.0.
-//
-
-namespace ImageSharp
-{
- using System;
- using System.IO;
-
- using Formats;
-
- ///
- /// Extension methods for the type.
- ///
- public static partial class BootstrapperExtensions
- {
- ///
- /// Adds the Jpeg format.
- ///
- /// The bootstrapper.
- /// The Bootstrapper
- public static Bootstrapper AddJpegFormat(this Bootstrapper bootstrapper)
- {
- bootstrapper.AddImageFormat(new JpegFormat());
- return bootstrapper;
- }
- }
-}
diff --git a/src/ImageSharp.Formats.Jpeg/ConfigurationExtensions.cs b/src/ImageSharp.Formats.Jpeg/ConfigurationExtensions.cs
new file mode 100644
index 0000000000..28d49629d6
--- /dev/null
+++ b/src/ImageSharp.Formats.Jpeg/ConfigurationExtensions.cs
@@ -0,0 +1,29 @@
+//
+// Copyright (c) James Jackson-South and contributors.
+// Licensed under the Apache License, Version 2.0.
+//
+
+namespace ImageSharp
+{
+ using System;
+ using System.IO;
+
+ using Formats;
+
+ ///
+ /// Extension methods for the type.
+ ///
+ public static partial class ConfigurationExtensions
+ {
+ ///
+ /// Adds the Jpeg format.
+ ///
+ /// The config.
+ /// The config
+ public static Configuration AddJpegFormat(this Configuration config)
+ {
+ config.AddImageFormat(new JpegFormat());
+ return config;
+ }
+ }
+}
diff --git a/src/ImageSharp.Formats.Png/BootstrapperExtensions.cs b/src/ImageSharp.Formats.Png/BootstrapperExtensions.cs
deleted file mode 100644
index eeef291a15..0000000000
--- a/src/ImageSharp.Formats.Png/BootstrapperExtensions.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// Copyright (c) James Jackson-South and contributors.
-// Licensed under the Apache License, Version 2.0.
-//
-
-namespace ImageSharp
-{
- using System;
- using System.IO;
-
- using Formats;
-
- ///
- /// Extension methods for the type.
- ///
- public static partial class BootstrapperExtensions
- {
- ///
- /// Adds the Png format.
- ///
- /// The bootstrapper.
- /// The Bootstrapper
- public static Bootstrapper AddPngFormat(this Bootstrapper bootstrapper)
- {
- bootstrapper.AddImageFormat(new PngFormat());
- return bootstrapper;
- }
- }
-}
diff --git a/src/ImageSharp.Formats.Png/ConfigurationExtensions.cs b/src/ImageSharp.Formats.Png/ConfigurationExtensions.cs
new file mode 100644
index 0000000000..e09f0a0cbb
--- /dev/null
+++ b/src/ImageSharp.Formats.Png/ConfigurationExtensions.cs
@@ -0,0 +1,29 @@
+//
+// Copyright (c) James Jackson-South and contributors.
+// Licensed under the Apache License, Version 2.0.
+//
+
+namespace ImageSharp
+{
+ using System;
+ using System.IO;
+
+ using Formats;
+
+ ///
+ /// Extension methods for the type.
+ ///
+ public static partial class ConfigurationExtensions
+ {
+ ///
+ /// Adds the Png format.
+ ///
+ /// The Image configurations.
+ /// The Configuration object
+ public static Configuration AddPngFormat(this Configuration config)
+ {
+ config.AddImageFormat(new PngFormat());
+ return config;
+ }
+ }
+}
diff --git a/src/ImageSharp.Formats/BootstrapperExtensions.cs b/src/ImageSharp.Formats/ConfigurationExtensions.cs
similarity index 55%
rename from src/ImageSharp.Formats/BootstrapperExtensions.cs
rename to src/ImageSharp.Formats/ConfigurationExtensions.cs
index 90b3384a5e..f867bcbf60 100644
--- a/src/ImageSharp.Formats/BootstrapperExtensions.cs
+++ b/src/ImageSharp.Formats/ConfigurationExtensions.cs
@@ -1,4 +1,4 @@
-//
+//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
@@ -11,18 +11,18 @@ namespace ImageSharp
using Formats;
///
- /// Extension methods for the type.
+ /// Extension methods for the type.
///
- public static partial class BootstrapperExtensions
+ public static partial class ConfigurationExtensions
{
///
/// Adds the common formats, PNG, JPEG, GIF and BMP.
///
- /// The bootstrapper.
- /// The bootstrapper
- public static Bootstrapper AddCommonFormats(this Bootstrapper bootstrapper)
+ /// The config.
+ /// The config
+ public static Configuration AddCommonFormats(this Configuration config)
{
- return bootstrapper
+ return config
.AddPngFormat()
.AddJpegFormat()
.AddGifFormat()
diff --git a/tests/ImageSharp.Tests/TestBase.cs b/tests/ImageSharp.Tests/TestBase.cs
index 391ed89ac4..dba93958b0 100644
--- a/tests/ImageSharp.Tests/TestBase.cs
+++ b/tests/ImageSharp.Tests/TestBase.cs
@@ -15,7 +15,7 @@ namespace ImageSharp.Tests
{
protected TestBase()
{
- Bootstrapper.Default.AddCommonFormats();
+ Configuration.Default.AddCommonFormats();
}
///