Get Number of Frames In AnyBitmap
using IronSoftware.Drawing;
using System;

// Get and print the number of frames in any multipage GIF or TIFF file
var multiFrameImage = AnyBitmap.FromFile("FILE_PATH").FrameCount;
Console.WriteLine(multiFrameImage);


NuGet Download
PM > Install-Package IronSoftware.System.Drawing
Get Number of Frames In AnyBitmap

Get Number of Frames In AnyBitmap

This feature enables users to retrieve the number of frames within multipage GIF or TIFF files easily.

The multipage file to be read can be converted to AnyBitmap type using the file path and get the frame count saved to a variable using the AnyBitmap.FromFile(@"FILE_PATH").FrameCount method.

View on GitHub

Ready to Get Started?

Nuget Downloads 21,099,947Version:2026.11just released