IRONSOFTWAREHOME
Create Multipage TIFF and GIF
using IronSoftware.Drawing;
using System.Collections.Generic;

// Create a multipage Tiff with frames of different dimensions
List<AnyBitmap> tiffBitmaps = new List<AnyBitmap>()
{
     AnyBitmap.FromFile("cropframe1.jpg"),
     AnyBitmap.FromFile("frame2.jpg"),
     AnyBitmap.FromFile("cropframe3.jpg")
};
AnyBitmap multiFrameTiff = AnyBitmap.CreateMultiFrameTiff(tiffBitmaps);
multiFrameTiff.SaveAs("multiTiffwcrops.tiff");


// Create a multipage Gif with frames of different dimensions
List<AnyBitmap> gifBitmaps = new List<AnyBitmap>()
{
    AnyBitmap.FromFile("frame1.jpg"),
    AnyBitmap.FromFile("frame2.jpg"),
    AnyBitmap.FromFile("frame3.jpg"),
    AnyBitmap.FromFile("cropframe4.jpg")
};
AnyBitmap multiFrameGif = AnyBitmap.CreateMultiFrameGif(gifBitmaps);
multiFrameGif.SaveAs("multiGif.gif");

NuGet Download
PM > Install-Package IronSoftware.System.Drawing
Create Multipage TIFF and GIF

Create Multipage TIFF and GIF

Users are able to combine AnyBitmap files into multipage TIFF or GIF files using IronDrawing. Users can also use different dimensions for each frame to create these multipage files.

To use this feature, all AnyBitmap frames need to be loaded using their file paths and stored inside an initialized list of the AnyBitmap type. A TIFF file can be created from the frames stored by using CreateMultiFrameTiff(List<AnyBitmap>) or a GIF file can be created using CreateMultiFrameGif(List<AnyBitmap>).

View on GitHub

Ready to Get Started?

Nuget Downloads 19,846,219Version:2025.3just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

OR
bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required