diff --git a/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs b/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs index d301df94f6..af472845ac 100644 --- a/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs +++ b/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs @@ -307,7 +307,8 @@ internal class Vp8LEncoder : IDisposable prevPosition = BitWriterBase.WriteAnimationFrame(stream, new() { Width = (uint)frame.Width, - Height = (uint)frame.Height + Height = (uint)frame.Height, + Duration = frame.Metadata.GetWebpMetadata().FrameDuration }); } diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoder.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoder.cs index ccd7d8b6d5..40dbb90de6 100644 --- a/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoder.cs +++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoder.cs @@ -477,7 +477,8 @@ internal class Vp8Encoder : IDisposable prevPosition = BitWriterBase.WriteAnimationFrame(stream, new() { Width = (uint)frame.Width, - Height = (uint)frame.Height + Height = (uint)frame.Height, + Duration = frame.Metadata.GetWebpMetadata().FrameDuration }); }