Browse Source

Use Rgb24 for Async

pull/1859/head
James Jackson-South 5 years ago
parent
commit
cc28bc00df
  1. 2
      src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

2
src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

@ -42,7 +42,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
/// <inheritdoc />
public async Task<Image> DecodeAsync(Configuration configuration, Stream stream, CancellationToken cancellationToken)
=> await this.DecodeAsync<Rgba32>(configuration, stream, cancellationToken)
=> await this.DecodeAsync<Rgb24>(configuration, stream, cancellationToken)
.ConfigureAwait(false);
/// <inheritdoc/>

Loading…
Cancel
Save