Skip to content

Commit c31db73

Browse files
committed
re-add rest of comment
1 parent 3dec79c commit c31db73

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
@@ -652,6 +652,9 @@ private void InitializeFrame<TPixel>(
652652
out ImageFrame<TPixel> frame)
653653
where TPixel : unmanaged, IPixel<TPixel>
654654
{
655+
// We create a clone of the previous frame and add it.
656+
// We will overpaint the difference of pixels on the current frame to create a complete image.
657+
// This ensures that we have enough pixel data to process without distortion. #2450
655658
frame = image.Frames.AddFrame(previousFrame ?? image.Frames.RootFrame);
656659

657660
// 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)