Convert PowerPoint PPT to Animated GIF in C#

PowePoint to GIF conversion is usually performed to avoid the necessity of MS PowerPoint for previewing the presentations. The animated GIF has the ability to contain all the PPT slides in a single file. Therefore, this article covers how to convert a PowerPoint PPT or PPTX presentation to an animated GIF in C#. Furthermore, you will learn how to customize frame size, the delay between slides, and frames per second programmatically.

C# .NET API for PowerPoint PPT to GIF Conversion

To convert PowerPoint PPT/PPTX files to animated GIF, we will use Aspose.Slides for .NET. It is a feature-rich .NET API for creating and manipulating PowerPoint presentations. Also, it offers high-fidelity conversion of PPT/PPTX files to other formats. You can download API’s DLL or install it using NuGet.

PM> Install-Package Aspose.Slides.NET 

Convert a PowerPoint PPT to GIF in C#

Aspose.Slides for .NET makes it quite easier for you to convert a PPT/PPTX to GIF. Just load the presentation and save it as a GIF. The following are the steps to convert a PPT to GIF in C#.

The following code sample shows how to convert a PowerPoint PPTX file to an animated GIF in C#.

C# PPTX to GIF - Additional Options

You can also customize PPT to GIF conversion using different options such as the delay between slides, frame size of GIF, and the transition in frames per second. The following are the steps to customize PPT to GIF conversion.

The following code sample shows how to convert a PPT to an animated GIF with customized settings in C#.

C# API to Save PPT as GIF - Get a Free License

You can get a free temporary license to use Aspose.Slides for .NET without evaluation limitations.

Conclusion

In this article, you have learned how to convert PowerPoint PPT/PPTX presentations to animated GIF in C#. Furthermore, you have seen how to customize PowerPoint to GIF conversion using different options. Besides, you can explore more about Aspose.Slides for .NET using the documentation. Also, you can post your queries to our forum.

See Also

Info: Aspose recently developed an online Text to GIF Converter that allows you to make interesting animations based on simple texts or messages.