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 b1a5593 commit 8480139Copy full SHA for 8480139
src/ImageSharp/Formats/Png/PngDecoderCore.cs
@@ -646,6 +646,9 @@ private void InitializeFrame<TPixel>(
646
out ImageFrame<TPixel> frame)
647
where TPixel : unmanaged, IPixel<TPixel>
648
{
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
652
frame = image.Frames.AddFrame(previousFrame ?? image.Frames.RootFrame);
653
654
// 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