Browse Source

Call the new InternalDetectFormatAsync() from DetectFormatAsync()

pull/2725/head
Dan Kroymann 2 years ago
parent
commit
e0d1493c3b
  1. 2
      src/ImageSharp/Image.FromStream.cs

2
src/ImageSharp/Image.FromStream.cs

@ -72,7 +72,7 @@ public abstract partial class Image
=> WithSeekableStreamAsync( => WithSeekableStreamAsync(
options, options,
stream, stream,
(s, _) => Task.FromResult(InternalDetectFormat(options.Configuration, s)), async (s, ct) => await InternalDetectFormatAsync(options.Configuration, s, ct).ConfigureAwait(false),
cancellationToken); cancellationToken);
/// <summary> /// <summary>

Loading…
Cancel
Save