diff --git a/src/ImageSharp/Image.FromFile.cs b/src/ImageSharp/Image.FromFile.cs
index fce0835fb..345a5e6c8 100644
--- a/src/ImageSharp/Image.FromFile.cs
+++ b/src/ImageSharp/Image.FromFile.cs
@@ -298,7 +298,7 @@ namespace SixLabors.ImageSharp
/// Image format is not supported.
/// Image contains invalid content.
/// A representing the asynchronous operation.
- public static Task LoadAsync(
+ public static async Task LoadAsync(
Configuration configuration,
string path,
IImageDecoder decoder,
@@ -308,7 +308,8 @@ namespace SixLabors.ImageSharp
Guard.NotNull(path, nameof(path));
using Stream stream = configuration.FileSystem.OpenRead(path);
- return LoadAsync(configuration, stream, decoder, cancellationToken);
+ return await LoadAsync(configuration, stream, decoder, cancellationToken)
+ .ConfigureAwait(false);
}
///
@@ -326,7 +327,7 @@ namespace SixLabors.ImageSharp
/// Image contains invalid content.
/// The pixel format.
/// A representing the asynchronous operation.
- public static Task> LoadAsync(
+ public static async Task> LoadAsync(
Configuration configuration,
string path,
IImageDecoder decoder,
@@ -337,7 +338,8 @@ namespace SixLabors.ImageSharp
Guard.NotNull(path, nameof(path));
using Stream stream = configuration.FileSystem.OpenRead(path);
- return LoadAsync(configuration, stream, decoder, cancellationToken);
+ return await LoadAsync(configuration, stream, decoder, cancellationToken)
+ .ConfigureAwait(false);
}
///