Convert ODP to GIF in C#

Convert ODP files to GIF images in C# using server-side Aspose.Slides APIs.

Convert ODP to GIF Using C#

Use Aspose.Slides for .NET to load an ODP presentation and render each slide as a GIF image. Install the package from NuGet or use the following Package Manager Console command.

Package Manager Console Command

PM> Install-Package Aspose.Slides.NET

This sample code shows ODP to GIF C# Conversion

using var presentation = new Presentation("template.odp");

foreach (var slide in presentation.Slides)
{
    using var image = slide.GetImage(1f, 1f);
    image.Save($"Slide_{slide.SlideNumber}.gif", ImageFormat.Gif);
}

How to Convert ODP to GIF via C#

.NET developers can easily load & convert ODP files to GIF in just a few lines of code.

  1. Load the ODP file with a Presentation object.
  2. Iterate through each slide in the Presentation.
  3. Render each slide with GetImage.
  4. Call the image Save method with ImageFormat.Gif.

System Requirements

Before you run the ODP to GIF conversion C# code, make sure that your environment includes the following prerequisites:

  • A supported operating system with .NET or Mono installed.
  • Development environment like Microsoft Visual Studio.
  • Aspose.Slides for .NET referenced in your project.

Built with Aspose.Slides

Convert ODP to GIF Online

The free Aspose.Slides Conversion app is built with Aspose.Slides for .NET, the same API as the code above. Open it and see what the API can do with your own ODP files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides converts files before you write code.
  • Upload ODP files and save them as GIF.
  • Download the result or convert more files.