Skip to content

Commit

Permalink
Merge pull request #2637 from SixLabors/backport/webp-milliseconds
Browse files Browse the repository at this point in the history
Backport: Fix WebP animation speed bug
  • Loading branch information
JimBobSquarePants authored Jan 1, 2024
2 parents 4b162db + 6570fc6 commit 72d603b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Webp/WebpFrameMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private WebpFrameMetadata(WebpFrameMetadata other)
internal static WebpFrameMetadata FromAnimatedMetadata(AnimatedImageFrameMetadata metadata)
=> new()
{
FrameDelay = (uint)metadata.Duration.Milliseconds,
FrameDelay = (uint)metadata.Duration.TotalMilliseconds,
BlendMethod = metadata.BlendMode == FrameBlendMode.Source ? WebpBlendMethod.Source : WebpBlendMethod.Over,
DisposalMethod = metadata.DisposalMode == FrameDisposalMode.RestoreToBackground ? WebpDisposalMethod.RestoreToBackground : WebpDisposalMethod.DoNotDispose
};
Expand Down

0 comments on commit 72d603b

Please sign in to comment.