Skip to content

ImageInfo.FrameMetadataCollection not populated correctly for animated png images #3100

@andreas-eriksson

Description

@andreas-eriksson

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.12

Other ImageSharp packages and versions

None

Environment (Operating system, version and so on)

Windows

.NET Framework version

8

Description

ImageInfo.FrameMetadataCollection is not populated correctly when running Identify.

Steps to Reproduce

public void Identify_AnimatedPng_ReadsFrameCountCorrectly()
{
    TestFile testFile = TestFile.Create(TestImages.Png.AnimatedFrameCount);

    using MemoryStream stream = new(testFile.Bytes, false);
    ImageInfo imageInfo = Image.Identify(stream);

    Assert.NotNull(imageInfo);
    Assert.Equal(50, imageInfo.FrameMetadataCollection.Count);
}

Images

No response

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