# Convert PowerPoint Presentations to Animated GIFs in C++

> Easily convert PowerPoint presentations (PPT, PPTX) to animated GIFs with Aspose.Slides for C++. Fast, high-quality results.

Source: https://docs.aspose.com/slides/cpp/convert-powerpoint-to-animated-gif/
Updated: 2026-08-05


## **Overview**

Aspose.Slides allows you to convert PowerPoint presentations to animated GIF files with just a few lines of code. This is useful when you need to share slide content in a lightweight, widely supported animated format that can be embedded in web pages, messengers, or documentation. This article explains how to export a presentation to GIF using default settings and how to customize the output by configuring options such as frame size, slide delay, and transition frame rate through [GifOptions](https://reference.aspose.com/slides/cpp/aspose.slides.export/gifoptions/).

## **Convert Presentations to Animated GIF Using Default Settings**

This sample code in C++ shows you how to convert a presentation to animated GIF using standard settings:

``` cpp
#include <DOM/Presentation.h>
#include <Export/SaveFormat.h>
using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
pres->Save(u"pres.gif", SaveFormat::Gif);
```

The animated GIF will be created with default parameters. 

{{%  alert  title="TIP"  color="primary"  %}} 

If you prefer to customize the parameters for the GIF, you can use the [GifOptions](https://reference.aspose.com/slides/cpp/class/aspose.slides.export.gif_options) class. See the sample code below. 

{{% /alert %}} 

## **Convert Presentations to Animated GIF Using Custom Settings**

This sample code shows you how to convert a presentation to animated GIF using custom settings in C++:

``` cpp
#include <DOM/Presentation.h>
#include <Export/GifOptions.h>
#include <Export/SaveFormat.h>
#include <drawing/size.h>
using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;

auto gifOptions = System::MakeObject<GifOptions>();
// the size of the resulted GIF
gifOptions->set_FrameSize(System::Drawing::Size(960, 720));
// how long each slide will be showed until it will be changed to the next one
gifOptions->set_DefaultDelay(2000);
// increase FPS to better transition animation quality
gifOptions->set_TransitionFps(35);

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
pres->Save(u"pres.gif", SaveFormat::Gif, gifOptions);
```

{{% alert title="Info" color="info" %}}

You may want to check out a FREE [Text to GIF](https://products.aspose.app/slides/text-to-gif) converter developed by Aspose. 

{{% /alert %}}

## **FAQ**

### What if the fonts used in the presentation aren’t installed on the system?

Install the missing fonts or [configure fallback fonts](/slides/cpp/powerpoint-fonts/). Aspose.Slides will substitute, but the appearance may differ. For branding, always ensure the required typefaces are explicitly available.

### Can I overlay a watermark on the GIF frames?

Yes. [Add a semi-transparent object/logo](/slides/cpp/watermark/) to the master slide or to individual slides before export — the watermark will appear on every frame.

