SpaceCheetah
2 years ago
No known key found for this signature in database
GPG Key ID: 2F7332F97EE5CEEA
1 changed files with
3 additions and
0 deletions
-
src/ImageSharp/Formats/Png/PngDecoderCore.cs
|
|
|
@ -652,6 +652,9 @@ internal sealed class PngDecoderCore : IImageDecoderInternals |
|
|
|
out ImageFrame<TPixel> frame) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
// We create a clone of the previous frame and add it.
|
|
|
|
// We will overpaint the difference of pixels on the current frame to create a complete image.
|
|
|
|
// This ensures that we have enough pixel data to process without distortion. #2450
|
|
|
|
frame = image.Frames.AddFrame(previousFrame ?? image.Frames.RootFrame); |
|
|
|
|
|
|
|
// If the first `fcTL` chunk uses a `dispose_op` of APNG_DISPOSE_OP_PREVIOUS it should be treated as APNG_DISPOSE_OP_BACKGROUND.
|
|
|
|
|