Skip to content

Commit 8480139

Browse files
committed
re-add rest of comment
1 parent b1a5593 commit 8480139

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ImageSharp/Formats/Png/PngDecoderCore.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ private void InitializeFrame<TPixel>(
646646
out ImageFrame<TPixel> frame)
647647
where TPixel : unmanaged, IPixel<TPixel>
648648
{
649+
// We create a clone of the previous frame and add it.
650+
// We will overpaint the difference of pixels on the current frame to create a complete image.
651+
// This ensures that we have enough pixel data to process without distortion. #2450
649652
frame = image.Frames.AddFrame(previousFrame ?? image.Frames.RootFrame);
650653

651654
// If the first `fcTL` chunk uses a `dispose_op` of APNG_DISPOSE_OP_PREVIOUS it should be treated as APNG_DISPOSE_OP_BACKGROUND.

0 commit comments

Comments
 (0)