Skip to content

Commit

Permalink
Merge branch 'main' into refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants authored Nov 14, 2024
2 parents 5f19369 + 123d5c3 commit 93299e1
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 438 deletions.
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/ImageEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void EncodeWithSeekableStream<TPixel>(Image<TPixel> image, Stream stream
else
{
using ChunkedMemoryStream ms = new(configuration.MemoryAllocator);
this.Encode(image, stream, cancellationToken);
this.Encode(image, ms, cancellationToken);
ms.Position = 0;
ms.CopyTo(stream, configuration.StreamProcessingBufferSize);
}
Expand Down
Loading

0 comments on commit 93299e1

Please sign in to comment.