Browse Source

re-add rest of comment

pull/2713/head
SpaceCheetah 2 years ago
parent
commit
8480139212
No known key found for this signature in database GPG Key ID: A60F20D29141DFF9
  1. 3
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

3
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -646,6 +646,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.

Loading…
Cancel
Save