From e749f3fa835de6d2543c60023e49386c2a45bcc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=88=E7=BA=BE?= Date: Sat, 11 Oct 2025 11:17:26 +0800 Subject: [PATCH] Fix condition for frame loop increment in DrawImageProcessor to ensure correct repeat count handling. --- .../Processors/Drawing/DrawImageProcessor{TPixelBg,TPixelFg}.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Processing/Processors/Drawing/DrawImageProcessor{TPixelBg,TPixelFg}.cs b/src/ImageSharp/Processing/Processors/Drawing/DrawImageProcessor{TPixelBg,TPixelFg}.cs index c72a10d8ae..0018888653 100644 --- a/src/ImageSharp/Processing/Processors/Drawing/DrawImageProcessor{TPixelBg,TPixelFg}.cs +++ b/src/ImageSharp/Processing/Processors/Drawing/DrawImageProcessor{TPixelBg,TPixelFg}.cs @@ -141,7 +141,7 @@ internal class DrawImageProcessor : ImageProcessor new Rectangle(0, 0, foregroundRectangle.Width, foregroundRectangle.Height), in operation); - if (this.RepeatCount is 0 || this.currentFrameLoop / this.ForegroundImage.Frames.Count <= this.RepeatCount) + if (this.RepeatCount is 0 || this.currentFrameLoop / this.ForegroundImage.Frames.Count < this.RepeatCount) { this.currentFrameLoop++; }