Skip to content

Commit 72d603b

Browse files
Merge pull request #2637 from SixLabors/backport/webp-milliseconds
Backport: Fix WebP animation speed bug
2 parents 4b162db + 6570fc6 commit 72d603b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Webp/WebpFrameMetadata.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private WebpFrameMetadata(WebpFrameMetadata other)
4848
internal static WebpFrameMetadata FromAnimatedMetadata(AnimatedImageFrameMetadata metadata)
4949
=> new()
5050
{
51-
FrameDelay = (uint)metadata.Duration.Milliseconds,
51+
FrameDelay = (uint)metadata.Duration.TotalMilliseconds,
5252
BlendMethod = metadata.BlendMode == FrameBlendMode.Source ? WebpBlendMethod.Source : WebpBlendMethod.Over,
5353
DisposalMethod = metadata.DisposalMode == FrameDisposalMode.RestoreToBackground ? WebpDisposalMethod.RestoreToBackground : WebpDisposalMethod.DoNotDispose
5454
};

0 commit comments

Comments
 (0)