Convert OTP Presentation Templates to Animated GIF in Python

Export the slides and transitions in an OTP presentation template to a single animated GIF with Aspose.Slides for Python via Java.

Convert OTP to GIF in Python

Aspose.Slides for Python via Java can load an OTP presentation template and export it as an animated GIF. The resulting file presents the slides as animation frames and can include slide transitions supported by the GIF exporter. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert OTP to GIF using Python

Create a Presentation from the OTP file and call save with SaveFormat.Gif to create an animated GIF.

Python code for converting OTP to animated GIF

presentation = Presentation("presentation.otp")
try:
    presentation.save("presentation.gif", SaveFormat.Gif)
finally:
    presentation.dispose()

How to convert OTP to animated GIF in Python

Follow these steps to export an OTP presentation template as a single animated GIF.

  1. Install Aspose.Slides for Python via Java .

  2. Configure the package and start the Java Virtual Machine in your application.

  3. Open the source OTP file with Presentation.

  4. Call save with SaveFormat.Gif to generate the animated GIF.