Skip to content

The animated foreground only draws its root frame onto the background #2996

@Yushu2606

Description

@Yushu2606

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

ImageSharp version

3.1.1

Other ImageSharp packages and versions

SixLabors.ImageSharp.Drawing 2.1.7

Environment (Operating system, version and so on)

Windows 10 22H2

.NET Framework version

.NET 8.0.21

Description

The animated foreground only draws its root frame onto the background.

Steps to Reproduce

using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Processing;

Image img = await Image.LoadAsync("input.gif");
Point loc = new(128, 128);
img.Mutate(ctx =>
{
    ctx.DrawImage(img, loc, 1);
});
await img.SaveAsGifAsync(
#if DEBUG
    "output_debug.gif"
#elif RELEASE
    "output_release.gif"
#endif
);

Images

input output (DEBUG) output (RELEASE)
Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions