We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dec79c commit c31db73Copy full SHA for c31db73
src/ImageSharp/Formats/Png/PngDecoderCore.cs
@@ -652,6 +652,9 @@ private void InitializeFrame<TPixel>(
652
out ImageFrame<TPixel> frame)
653
where TPixel : unmanaged, IPixel<TPixel>
654
{
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
658
frame = image.Frames.AddFrame(previousFrame ?? image.Frames.RootFrame);
659
660
// 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