diff --git a/src/ImageSharp/Image/Image.FromStream.cs b/src/ImageSharp/Image/Image.FromStream.cs index c3f4a714f..4e294260a 100644 --- a/src/ImageSharp/Image/Image.FromStream.cs +++ b/src/ImageSharp/Image/Image.FromStream.cs @@ -172,20 +172,6 @@ namespace SixLabors.ImageSharp /// A new .> public static Image Load(Configuration config, Stream stream, out IImageFormat format) where TPixel : struct, IPixel - => Load(config, stream, ReadOrigin.Begin, out format); - - /// - /// Create a new instance of the class from the given stream. - /// - /// The configuration options. - /// The stream containing image information. - /// The position in the stream to use for reading. - /// the mime type of the decoded image. - /// Thrown if the stream is not readable. - /// The pixel format. - /// A new .> - public static Image Load(Configuration config, Stream stream, ReadOrigin origin, out IImageFormat format) - where TPixel : struct, IPixel { config = config ?? Configuration.Default; (Image img, IImageFormat format) data = WithSeekableStream(config, stream, s => Decode(s, config));