SpaceCheetah
2 years ago
No known key found for this signature in database
GPG Key ID: A60F20D29141DFF9
1 changed files with
1 additions and
1 deletions
-
src/ImageSharp/Formats/Png/PngEncoderCore.cs
|
|
|
@ -190,7 +190,7 @@ internal sealed class PngEncoderCore : IImageEncoderInternals, IDisposable |
|
|
|
|
|
|
|
if (image.Frames.Count > 1) |
|
|
|
{ |
|
|
|
this.WriteAnimationControlChunk(stream, (uint)image.Frames.Count, pngMetadata.RepeatCount); |
|
|
|
this.WriteAnimationControlChunk(stream, (uint)(image.Frames.Count - (pngMetadata.DefaultImageAnimated ? 0 : 1)), pngMetadata.RepeatCount); |
|
|
|
} |
|
|
|
|
|
|
|
// If the first frame isn't animated, write it as usual and skip it when writing animated frames
|
|
|
|
|