Skip to content

Commit 93299e1

Browse files
Merge branch 'main' into refactor
2 parents 5f19369 + 123d5c3 commit 93299e1

File tree

6 files changed

+408
-438
lines changed

6 files changed

+408
-438
lines changed

src/ImageSharp/Formats/ImageEncoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private void EncodeWithSeekableStream<TPixel>(Image<TPixel> image, Stream stream
5151
else
5252
{
5353
using ChunkedMemoryStream ms = new(configuration.MemoryAllocator);
54-
this.Encode(image, stream, cancellationToken);
54+
this.Encode(image, ms, cancellationToken);
5555
ms.Position = 0;
5656
ms.CopyTo(stream, configuration.StreamProcessingBufferSize);
5757
}

0 commit comments

Comments
 (0)